- 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
59 lines
1.8 KiB
Java
59 lines
1.8 KiB
Java
package com.google.common.collect;
|
|
|
|
import com.google.common.base.Preconditions;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class SingletonImmutableSet extends ImmutableSet {
|
|
public final transient Object element;
|
|
|
|
@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 1;
|
|
}
|
|
|
|
public SingletonImmutableSet(Object obj) {
|
|
this.element = Preconditions.checkNotNull(obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection
|
|
public boolean contains(Object obj) {
|
|
return this.element.equals(obj);
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
|
|
public UnmodifiableIterator iterator() {
|
|
return Iterators.singletonIterator(this.element);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection
|
|
public ImmutableList asList() {
|
|
return ImmutableList.of(this.element);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public int copyIntoArray(Object[] objArr, int i) {
|
|
objArr[i] = this.element;
|
|
return i + 1;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set
|
|
public final int hashCode() {
|
|
return this.element.hashCode();
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection
|
|
public String toString() {
|
|
String obj = this.element.toString();
|
|
StringBuilder sb = new StringBuilder(String.valueOf(obj).length() + 2);
|
|
sb.append('[');
|
|
sb.append(obj);
|
|
sb.append(']');
|
|
return sb.toString();
|
|
}
|
|
}
|