- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
98 lines
2.9 KiB
Java
98 lines
2.9 KiB
Java
package com.google.common.collect;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class RegularImmutableSet extends ImmutableSet {
|
|
public static final RegularImmutableSet EMPTY;
|
|
public static final Object[] EMPTY_ARRAY;
|
|
public final transient Object[] elements;
|
|
public final transient int hashCode;
|
|
public final transient int mask;
|
|
public final transient int size;
|
|
public final transient Object[] table;
|
|
|
|
@Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set
|
|
public int hashCode() {
|
|
return this.hashCode;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public Object[] internalArray() {
|
|
return this.elements;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public int internalArrayEnd() {
|
|
return this.size;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public int internalArrayStart() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet
|
|
public boolean isHashCodeFast() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public boolean isPartialView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public int size() {
|
|
return this.size;
|
|
}
|
|
|
|
static {
|
|
Object[] objArr = new Object[0];
|
|
EMPTY_ARRAY = objArr;
|
|
EMPTY = new RegularImmutableSet(objArr, 0, objArr, 0, 0);
|
|
}
|
|
|
|
public RegularImmutableSet(Object[] objArr, int i, Object[] objArr2, int i2, int i3) {
|
|
this.elements = objArr;
|
|
this.hashCode = i;
|
|
this.table = objArr2;
|
|
this.mask = i2;
|
|
this.size = i3;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection
|
|
public boolean contains(Object obj) {
|
|
Object[] objArr = this.table;
|
|
if (obj == null || objArr.length == 0) {
|
|
return false;
|
|
}
|
|
int smearedHash = Hashing.smearedHash(obj);
|
|
while (true) {
|
|
int i = smearedHash & this.mask;
|
|
Object obj2 = objArr[i];
|
|
if (obj2 == null) {
|
|
return false;
|
|
}
|
|
if (obj2.equals(obj)) {
|
|
return true;
|
|
}
|
|
smearedHash = i + 1;
|
|
}
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
|
|
public UnmodifiableIterator iterator() {
|
|
return asList().iterator();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public int copyIntoArray(Object[] objArr, int i) {
|
|
System.arraycopy(this.elements, 0, objArr, i, this.size);
|
|
return i + this.size;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet
|
|
public ImmutableList createAsList() {
|
|
return ImmutableList.asImmutableList(this.elements, this.size);
|
|
}
|
|
}
|