- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
80 lines
2.6 KiB
Java
80 lines
2.6 KiB
Java
package androidx.collection;
|
|
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nIntSet.kt\nKotlin\n*S Kotlin\n*F\n+ 1 IntSet.kt\nandroidx/collection/IntSetKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,853:1\n1#2:854\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class IntSetKt {
|
|
private static final MutableIntSet EmptyIntSet = new MutableIntSet(0);
|
|
private static final int[] EmptyIntArray = new int[0];
|
|
|
|
public static final IntSet emptyIntSet() {
|
|
return EmptyIntSet;
|
|
}
|
|
|
|
public static final int[] getEmptyIntArray() {
|
|
return EmptyIntArray;
|
|
}
|
|
|
|
public static final IntSet intSetOf() {
|
|
return EmptyIntSet;
|
|
}
|
|
|
|
public static final IntSet intSetOf(int i) {
|
|
return mutableIntSetOf(i);
|
|
}
|
|
|
|
public static final IntSet intSetOf(int i, int i2) {
|
|
return mutableIntSetOf(i, i2);
|
|
}
|
|
|
|
public static final IntSet intSetOf(int i, int i2, int i3) {
|
|
return mutableIntSetOf(i, i2, i3);
|
|
}
|
|
|
|
public static final IntSet intSetOf(int... elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
MutableIntSet mutableIntSet = new MutableIntSet(elements.length);
|
|
mutableIntSet.plusAssign(elements);
|
|
return mutableIntSet;
|
|
}
|
|
|
|
public static final MutableIntSet mutableIntSetOf() {
|
|
return new MutableIntSet(0, 1, null);
|
|
}
|
|
|
|
public static final MutableIntSet mutableIntSetOf(int i) {
|
|
MutableIntSet mutableIntSet = new MutableIntSet(1);
|
|
mutableIntSet.plusAssign(i);
|
|
return mutableIntSet;
|
|
}
|
|
|
|
public static final MutableIntSet mutableIntSetOf(int i, int i2) {
|
|
MutableIntSet mutableIntSet = new MutableIntSet(2);
|
|
mutableIntSet.plusAssign(i);
|
|
mutableIntSet.plusAssign(i2);
|
|
return mutableIntSet;
|
|
}
|
|
|
|
public static final MutableIntSet mutableIntSetOf(int i, int i2, int i3) {
|
|
MutableIntSet mutableIntSet = new MutableIntSet(3);
|
|
mutableIntSet.plusAssign(i);
|
|
mutableIntSet.plusAssign(i2);
|
|
mutableIntSet.plusAssign(i3);
|
|
return mutableIntSet;
|
|
}
|
|
|
|
public static final MutableIntSet mutableIntSetOf(int... elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
MutableIntSet mutableIntSet = new MutableIntSet(elements.length);
|
|
mutableIntSet.plusAssign(elements);
|
|
return mutableIntSet;
|
|
}
|
|
|
|
public static final int hash(int i) {
|
|
int hashCode = Integer.hashCode(i) * ScatterMapKt.MurmurHashC1;
|
|
return hashCode ^ (hashCode << 16);
|
|
}
|
|
}
|