- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
868 lines
37 KiB
Java
868 lines
37 KiB
Java
package androidx.collection;
|
|
|
|
import androidx.annotation.IntRange;
|
|
import com.ironsource.v8;
|
|
import java.util.NoSuchElementException;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
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/IntSet\n+ 2 ScatterMap.kt\nandroidx/collection/ScatterMapKt\n+ 3 IntSet.kt\nandroidx/collection/IntSetKt\n*L\n1#1,853:1\n262#1,4:854\n232#1,7:858\n243#1,3:866\n246#1,2:870\n266#1,2:872\n249#1,6:874\n268#1:880\n262#1,4:881\n232#1,7:885\n243#1,3:893\n246#1,2:897\n266#1,2:899\n249#1,6:901\n268#1:907\n232#1,7:910\n243#1,3:918\n246#1,9:922\n262#1,4:931\n232#1,7:935\n243#1,3:943\n246#1,2:947\n266#1,2:949\n249#1,6:951\n268#1:957\n262#1,4:958\n232#1,7:962\n243#1,3:970\n246#1,2:974\n266#1,2:976\n249#1,6:978\n268#1:984\n262#1,4:985\n232#1,7:989\n243#1,3:997\n246#1,2:1001\n266#1,2:1003\n249#1,6:1005\n268#1:1011\n442#1:1012\n443#1:1016\n445#1,2:1018\n447#1,3:1021\n450#1:1027\n451#1:1031\n452#1:1033\n453#1,4:1036\n459#1:1041\n460#1,8:1043\n262#1,4:1051\n232#1,7:1055\n243#1,3:1063\n246#1,2:1067\n266#1,2:1069\n249#1,6:1071\n268#1:1077\n262#1,4:1078\n232#1,7:1082\n243#1,3:1090\n246#1,2:1094\n266#1,2:1096\n249#1,6:1098\n268#1:1104\n262#1,4:1105\n232#1,7:1109\n243#1,3:1117\n246#1,2:1121\n266#1,2:1123\n249#1,6:1125\n268#1:1131\n262#1,4:1132\n232#1,7:1136\n243#1,3:1144\n246#1,2:1148\n266#1,2:1150\n249#1,6:1152\n268#1:1158\n262#1,4:1159\n232#1,7:1163\n243#1,3:1171\n246#1,2:1175\n266#1,2:1177\n249#1,6:1179\n268#1:1185\n365#1,11:1202\n262#1,4:1213\n232#1,7:1217\n243#1,3:1225\n246#1,2:1229\n266#1:1231\n376#1,10:1232\n267#1:1242\n249#1,6:1243\n268#1:1249\n386#1,2:1250\n365#1,11:1252\n262#1,4:1263\n232#1,7:1267\n243#1,3:1275\n246#1,2:1279\n266#1:1281\n376#1,10:1282\n267#1:1292\n249#1,6:1293\n268#1:1299\n386#1,2:1300\n365#1,11:1302\n262#1,4:1313\n232#1,7:1317\n243#1,3:1325\n246#1,2:1329\n266#1:1331\n376#1,10:1332\n267#1:1342\n249#1,6:1343\n268#1:1349\n386#1,2:1350\n365#1,11:1352\n262#1,4:1363\n232#1,7:1367\n243#1,3:1375\n246#1,2:1379\n266#1:1381\n376#1,10:1382\n267#1:1392\n249#1,6:1393\n268#1:1399\n386#1,2:1400\n365#1,11:1402\n262#1,4:1413\n232#1,7:1417\n243#1,3:1425\n246#1,2:1429\n266#1:1431\n376#1,10:1432\n267#1:1442\n249#1,6:1443\n268#1:1449\n386#1,2:1450\n1826#2:865\n1688#2:869\n1826#2:892\n1688#2:896\n1826#2:908\n1688#2:909\n1826#2:917\n1688#2:921\n1826#2:942\n1688#2:946\n1826#2:969\n1688#2:973\n1826#2:996\n1688#2:1000\n1619#2:1017\n1615#2:1020\n1795#2,3:1024\n1809#2,3:1028\n1733#2:1032\n1721#2:1034\n1715#2:1035\n1728#2:1040\n1818#2:1042\n1826#2:1062\n1688#2:1066\n1826#2:1089\n1688#2:1093\n1826#2:1116\n1688#2:1120\n1826#2:1143\n1688#2:1147\n1826#2:1170\n1688#2:1174\n1619#2:1189\n1615#2:1190\n1795#2,3:1191\n1809#2,3:1194\n1733#2:1197\n1721#2:1198\n1715#2:1199\n1728#2:1200\n1818#2:1201\n1826#2:1224\n1688#2:1228\n1826#2:1274\n1688#2:1278\n1826#2:1324\n1688#2:1328\n1826#2:1374\n1688#2:1378\n1826#2:1424\n1688#2:1428\n849#3,3:1013\n849#3,3:1186\n*S KotlinDebug\n*F\n+ 1 IntSet.kt\nandroidx/collection/IntSet\n*L\n203#1:854,4\n203#1:858,7\n203#1:866,3\n203#1:870,2\n203#1:872,2\n203#1:874,6\n203#1:880\n222#1:881,4\n222#1:885,7\n222#1:893,3\n222#1:897,2\n222#1:899,2\n222#1:901,6\n222#1:907\n265#1:910,7\n265#1:918,3\n265#1:922,9\n277#1:931,4\n277#1:935,7\n277#1:943,3\n277#1:947,2\n277#1:949,2\n277#1:951,6\n277#1:957\n290#1:958,4\n290#1:962,7\n290#1:970,3\n290#1:974,2\n290#1:976,2\n290#1:978,6\n290#1:984\n311#1:985,4\n311#1:989,7\n311#1:997,3\n311#1:1001,2\n311#1:1003,2\n311#1:1005,6\n311#1:1011\n322#1:1012\n322#1:1016\n322#1:1018,2\n322#1:1021,3\n322#1:1027\n322#1:1031\n322#1:1033\n322#1:1036,4\n322#1:1041\n322#1:1043,8\n342#1:1051,4\n342#1:1055,7\n342#1:1063,3\n342#1:1067,2\n342#1:1069,2\n342#1:1071,6\n342#1:1077\n375#1:1078,4\n375#1:1082,7\n375#1:1090,3\n375#1:1094,2\n375#1:1096,2\n375#1:1098,6\n375#1:1104\n375#1:1105,4\n375#1:1109,7\n375#1:1117,3\n375#1:1121,2\n375#1:1123,2\n375#1:1125,6\n375#1:1131\n396#1:1132,4\n396#1:1136,7\n396#1:1144,3\n396#1:1148,2\n396#1:1150,2\n396#1:1152,6\n396#1:1158\n422#1:1159,4\n422#1:1163,7\n422#1:1171,3\n422#1:1175,2\n422#1:1177,2\n422#1:1179,6\n422#1:1185\n-1#1:1202,11\n-1#1:1213,4\n-1#1:1217,7\n-1#1:1225,3\n-1#1:1229,2\n-1#1:1231\n-1#1:1232,10\n-1#1:1242\n-1#1:1243,6\n-1#1:1249\n-1#1:1250,2\n-1#1:1252,11\n-1#1:1263,4\n-1#1:1267,7\n-1#1:1275,3\n-1#1:1279,2\n-1#1:1281\n-1#1:1282,10\n-1#1:1292\n-1#1:1293,6\n-1#1:1299\n-1#1:1300,2\n-1#1:1302,11\n-1#1:1313,4\n-1#1:1317,7\n-1#1:1325,3\n-1#1:1329,2\n-1#1:1331\n-1#1:1332,10\n-1#1:1342\n-1#1:1343,6\n-1#1:1349\n-1#1:1350,2\n-1#1:1352,11\n-1#1:1363,4\n-1#1:1367,7\n-1#1:1375,3\n-1#1:1379,2\n-1#1:1381\n-1#1:1382,10\n-1#1:1392\n-1#1:1393,6\n-1#1:1399\n-1#1:1400,2\n-1#1:1402,11\n-1#1:1413,4\n-1#1:1417,7\n-1#1:1425,3\n-1#1:1429,2\n-1#1:1431\n-1#1:1432,10\n-1#1:1442\n-1#1:1443,6\n-1#1:1449\n-1#1:1450,2\n203#1:865\n203#1:869\n222#1:892\n222#1:896\n238#1:908\n245#1:909\n265#1:917\n265#1:921\n277#1:942\n277#1:946\n290#1:969\n290#1:973\n311#1:996\n311#1:1000\n322#1:1017\n322#1:1020\n322#1:1024,3\n322#1:1028,3\n322#1:1032\n322#1:1034\n322#1:1035\n322#1:1040\n322#1:1042\n342#1:1062\n342#1:1066\n375#1:1089\n375#1:1093\n375#1:1116\n375#1:1120\n396#1:1143\n396#1:1147\n422#1:1170\n422#1:1174\n443#1:1189\n446#1:1190\n449#1:1191,3\n450#1:1194,3\n451#1:1197\n452#1:1198\n452#1:1199\n456#1:1200\n459#1:1201\n-1#1:1224\n-1#1:1228\n-1#1:1274\n-1#1:1278\n-1#1:1324\n-1#1:1328\n-1#1:1374\n-1#1:1378\n-1#1:1424\n-1#1:1428\n322#1:1013,3\n442#1:1186,3\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public abstract class IntSet {
|
|
public int _capacity;
|
|
public int _size;
|
|
public int[] elements;
|
|
public long[] metadata;
|
|
|
|
public /* synthetic */ IntSet(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public static /* synthetic */ void getElements$annotations() {
|
|
}
|
|
|
|
public static /* synthetic */ void getMetadata$annotations() {
|
|
}
|
|
|
|
public final boolean any() {
|
|
return this._size != 0;
|
|
}
|
|
|
|
@IntRange(from = 0)
|
|
public final int count() {
|
|
return this._size;
|
|
}
|
|
|
|
@IntRange(from = 0)
|
|
public final int getCapacity() {
|
|
return this._capacity;
|
|
}
|
|
|
|
@IntRange(from = 0)
|
|
public final int getSize() {
|
|
return this._size;
|
|
}
|
|
|
|
public final boolean isEmpty() {
|
|
return this._size == 0;
|
|
}
|
|
|
|
public final boolean isNotEmpty() {
|
|
return this._size != 0;
|
|
}
|
|
|
|
public final String joinToString() {
|
|
return joinToString$default(this, null, null, null, 0, null, 31, null);
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
return joinToString$default(this, separator, null, null, 0, null, 30, null);
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
return joinToString$default(this, separator, prefix, null, 0, null, 28, null);
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, CharSequence postfix) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
return joinToString$default(this, separator, prefix, postfix, 0, null, 24, null);
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, CharSequence postfix, int i) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
return joinToString$default(this, separator, prefix, postfix, i, null, 16, null);
|
|
}
|
|
|
|
public final boolean none() {
|
|
return this._size == 0;
|
|
}
|
|
|
|
private IntSet() {
|
|
this.metadata = ScatterMapKt.EmptyGroup;
|
|
this.elements = IntSetKt.getEmptyIntArray();
|
|
}
|
|
|
|
public final boolean all(Function1 predicate) {
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length < 0) {
|
|
return true;
|
|
}
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128 && !((Boolean) predicate.invoke(Integer.valueOf(iArr[(i << 3) + i3]))).booleanValue()) {
|
|
return false;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
return true;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
return true;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
|
|
public final boolean any(Function1 predicate) {
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128 && ((Boolean) predicate.invoke(Integer.valueOf(iArr[(i << 3) + i3]))).booleanValue()) {
|
|
return true;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@IntRange(from = 0)
|
|
public final int count(Function1 predicate) {
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
int i = 0;
|
|
if (length >= 0) {
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
while (true) {
|
|
long j = jArr[i2];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i4 = 8 - ((~(i2 - length)) >>> 31);
|
|
for (int i5 = 0; i5 < i4; i5++) {
|
|
if ((255 & j) < 128 && ((Boolean) predicate.invoke(Integer.valueOf(iArr[(i2 << 3) + i5]))).booleanValue()) {
|
|
i3++;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i4 != 8) {
|
|
return i3;
|
|
}
|
|
}
|
|
if (i2 == length) {
|
|
i = i3;
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public final int first() {
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
return iArr[(i << 3) + i3];
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
throw new NoSuchElementException("The IntSet is empty");
|
|
}
|
|
|
|
public final int first(Function1 predicate) {
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
int i4 = iArr[(i << 3) + i3];
|
|
if (((Boolean) predicate.invoke(Integer.valueOf(i4))).booleanValue()) {
|
|
return i4;
|
|
}
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
throw new NoSuchElementException("Could not find a match");
|
|
}
|
|
|
|
public final void forEach(Function1 block) {
|
|
Intrinsics.checkNotNullParameter(block, "block");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length < 0) {
|
|
return;
|
|
}
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
block.invoke(Integer.valueOf(iArr[(i << 3) + i3]));
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
return;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
return;
|
|
} else {
|
|
i++;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void forEachIndex(Function1 block) {
|
|
Intrinsics.checkNotNullParameter(block, "block");
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length < 0) {
|
|
return;
|
|
}
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128) {
|
|
block.invoke(Integer.valueOf((i << 3) + i3));
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
return;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
return;
|
|
} else {
|
|
i++;
|
|
}
|
|
}
|
|
}
|
|
|
|
public int hashCode() {
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
int i = 0;
|
|
if (length >= 0) {
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
while (true) {
|
|
long j = jArr[i2];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i4 = 8 - ((~(i2 - length)) >>> 31);
|
|
for (int i5 = 0; i5 < i4; i5++) {
|
|
if ((255 & j) < 128) {
|
|
i3 += Integer.hashCode(iArr[(i2 << 3) + i5]);
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i4 != 8) {
|
|
return i3;
|
|
}
|
|
}
|
|
if (i2 == length) {
|
|
i = i3;
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public static /* synthetic */ String joinToString$default(IntSet intSet, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, int i, CharSequence charSequence4, int i2, Object obj) {
|
|
if (obj != null) {
|
|
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: joinToString");
|
|
}
|
|
if ((i2 & 1) != 0) {
|
|
charSequence = ", ";
|
|
}
|
|
CharSequence charSequence5 = (i2 & 2) != 0 ? "" : charSequence2;
|
|
CharSequence charSequence6 = (i2 & 4) == 0 ? charSequence3 : "";
|
|
if ((i2 & 8) != 0) {
|
|
i = -1;
|
|
}
|
|
int i3 = i;
|
|
if ((i2 & 16) != 0) {
|
|
charSequence4 = "...";
|
|
}
|
|
return intSet.joinToString(charSequence, charSequence5, charSequence6, i3, charSequence4);
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, CharSequence postfix, int i, CharSequence truncated) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
Intrinsics.checkNotNullParameter(truncated, "truncated");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(prefix);
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i2];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i4 = 8;
|
|
int i5 = 8 - ((~(i2 - length)) >>> 31);
|
|
int i6 = 0;
|
|
while (i6 < i5) {
|
|
if ((j & 255) < 128) {
|
|
int i7 = iArr[(i2 << 3) + i6];
|
|
if (i3 == i) {
|
|
sb.append(truncated);
|
|
break loop0;
|
|
}
|
|
if (i3 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append(i7);
|
|
i3++;
|
|
}
|
|
j >>= 8;
|
|
i6++;
|
|
i4 = 8;
|
|
}
|
|
if (i5 != i4) {
|
|
break;
|
|
}
|
|
}
|
|
if (i2 == length) {
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
sb.append(postfix);
|
|
String sb22 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb22, "StringBuilder().apply(builderAction).toString()");
|
|
return sb22;
|
|
}
|
|
|
|
public static /* synthetic */ String joinToString$default(IntSet intSet, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, int i, CharSequence charSequence4, Function1 transform, int i2, Object obj) {
|
|
if (obj == null) {
|
|
CharSequence separator = (i2 & 1) != 0 ? ", " : charSequence;
|
|
CharSequence prefix = (i2 & 2) != 0 ? "" : charSequence2;
|
|
CharSequence postfix = (i2 & 4) == 0 ? charSequence3 : "";
|
|
int i3 = (i2 & 8) != 0 ? -1 : i;
|
|
CharSequence truncated = (i2 & 16) != 0 ? "..." : charSequence4;
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
Intrinsics.checkNotNullParameter(truncated, "truncated");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(prefix);
|
|
int[] iArr = intSet.elements;
|
|
long[] jArr = intSet.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i4 = 0;
|
|
int i5 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i4];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i6 = 8;
|
|
int i7 = 8 - ((~(i4 - length)) >>> 31);
|
|
for (int i8 = 0; i8 < i7; i8++) {
|
|
if ((j & 255) < 128) {
|
|
int i9 = iArr[(i4 << 3) + i8];
|
|
if (i5 == i3) {
|
|
sb.append(truncated);
|
|
break loop0;
|
|
}
|
|
if (i5 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i9)));
|
|
i5++;
|
|
i6 = 8;
|
|
}
|
|
j >>= i6;
|
|
}
|
|
if (i7 != i6) {
|
|
break;
|
|
}
|
|
}
|
|
if (i4 == length) {
|
|
break;
|
|
}
|
|
i4++;
|
|
}
|
|
}
|
|
sb.append(postfix);
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: joinToString");
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, CharSequence postfix, int i, CharSequence truncated, Function1 transform) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
Intrinsics.checkNotNullParameter(truncated, "truncated");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(prefix);
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i2];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i4 = 8;
|
|
int i5 = 8 - ((~(i2 - length)) >>> 31);
|
|
int i6 = 0;
|
|
while (i6 < i5) {
|
|
if ((j & 255) < 128) {
|
|
int i7 = iArr[(i2 << 3) + i6];
|
|
if (i3 == i) {
|
|
sb.append(truncated);
|
|
break loop0;
|
|
}
|
|
if (i3 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i7)));
|
|
i3++;
|
|
}
|
|
j >>= 8;
|
|
i6++;
|
|
i4 = 8;
|
|
}
|
|
if (i5 != i4) {
|
|
break;
|
|
}
|
|
}
|
|
if (i2 == length) {
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
}
|
|
sb.append(postfix);
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, CharSequence postfix, int i, Function1 transform) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(prefix);
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i2];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i4 = 8;
|
|
int i5 = 8 - ((~(i2 - length)) >>> 31);
|
|
for (int i6 = 0; i6 < i5; i6++) {
|
|
if ((j & 255) < 128) {
|
|
int i7 = iArr[(i2 << 3) + i6];
|
|
if (i3 == i) {
|
|
sb.append((CharSequence) "...");
|
|
break loop0;
|
|
}
|
|
if (i3 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i7)));
|
|
i3++;
|
|
i4 = 8;
|
|
}
|
|
j >>= i4;
|
|
}
|
|
if (i5 != i4) {
|
|
break;
|
|
}
|
|
}
|
|
if (i2 == length) {
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
sb.append(postfix);
|
|
String sb22 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb22, "StringBuilder().apply(builderAction).toString()");
|
|
return sb22;
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, CharSequence postfix, Function1 transform) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(postfix, "postfix");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(prefix);
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
int i2 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i3 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
if ((j & 255) < 128) {
|
|
int i5 = iArr[(i << 3) + i4];
|
|
if (i2 == -1) {
|
|
sb.append((CharSequence) "...");
|
|
break loop0;
|
|
}
|
|
if (i2 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i5)));
|
|
i2++;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i3 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
sb.append(postfix);
|
|
String sb22 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb22, "StringBuilder().apply(builderAction).toString()");
|
|
return sb22;
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, CharSequence prefix, Function1 transform) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(prefix);
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
int i2 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i3 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
if ((255 & j) < 128) {
|
|
int i5 = iArr[(i << 3) + i4];
|
|
if (i2 == -1) {
|
|
sb.append((CharSequence) "...");
|
|
break loop0;
|
|
}
|
|
if (i2 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i5)));
|
|
i2++;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i3 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
sb.append((CharSequence) "");
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
|
|
public final String joinToString(CharSequence separator, Function1 transform) {
|
|
Intrinsics.checkNotNullParameter(separator, "separator");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append((CharSequence) "");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
int i2 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i3 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
if ((j & 255) < 128) {
|
|
int i5 = iArr[(i << 3) + i4];
|
|
if (i2 == -1) {
|
|
sb.append((CharSequence) "...");
|
|
break loop0;
|
|
}
|
|
if (i2 != 0) {
|
|
sb.append(separator);
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i5)));
|
|
i2++;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i3 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
sb.append((CharSequence) "");
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
|
|
public final String joinToString(Function1 transform) {
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append((CharSequence) "");
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
int i2 = 0;
|
|
loop0: while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i3 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
if ((255 & j) < 128) {
|
|
int i5 = iArr[(i << 3) + i4];
|
|
if (i2 == -1) {
|
|
sb.append((CharSequence) "...");
|
|
break loop0;
|
|
}
|
|
if (i2 != 0) {
|
|
sb.append((CharSequence) ", ");
|
|
}
|
|
sb.append((CharSequence) transform.invoke(Integer.valueOf(i5)));
|
|
i2++;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i3 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
sb.append((CharSequence) "");
|
|
String sb2 = sb.toString();
|
|
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
|
return sb2;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof IntSet)) {
|
|
return false;
|
|
}
|
|
IntSet intSet = (IntSet) obj;
|
|
if (intSet._size != this._size) {
|
|
return false;
|
|
}
|
|
int[] iArr = this.elements;
|
|
long[] jArr = this.metadata;
|
|
int length = jArr.length - 2;
|
|
if (length >= 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
long j = jArr[i];
|
|
if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
|
|
int i2 = 8 - ((~(i - length)) >>> 31);
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
if ((255 & j) < 128 && !intSet.contains(iArr[(i << 3) + i3])) {
|
|
return false;
|
|
}
|
|
j >>= 8;
|
|
}
|
|
if (i2 != 8) {
|
|
break;
|
|
}
|
|
}
|
|
if (i == length) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public String toString() {
|
|
return joinToString$default(this, null, v8.i.d, v8.i.e, 0, null, 25, null);
|
|
}
|
|
|
|
public final boolean contains(int i) {
|
|
int hashCode = Integer.hashCode(i) * ScatterMapKt.MurmurHashC1;
|
|
int i2 = hashCode ^ (hashCode << 16);
|
|
int i3 = i2 & 127;
|
|
int i4 = this._capacity;
|
|
int i5 = (i2 >>> 7) & i4;
|
|
int i6 = 0;
|
|
while (true) {
|
|
long[] jArr = this.metadata;
|
|
int i7 = i5 >> 3;
|
|
int i8 = (i5 & 7) << 3;
|
|
long j = ((jArr[i7 + 1] << (64 - i8)) & ((-i8) >> 63)) | (jArr[i7] >>> i8);
|
|
long j2 = (i3 * ScatterMapKt.BitmaskLsb) ^ j;
|
|
for (long j3 = (~j2) & (j2 - ScatterMapKt.BitmaskLsb) & (-9187201950435737472L); j3 != 0; j3 &= j3 - 1) {
|
|
int numberOfTrailingZeros = ((Long.numberOfTrailingZeros(j3) >> 3) + i5) & i4;
|
|
if (this.elements[numberOfTrailingZeros] == i) {
|
|
return numberOfTrailingZeros >= 0;
|
|
}
|
|
}
|
|
if ((j & ((~j) << 6) & (-9187201950435737472L)) != 0) {
|
|
return false;
|
|
}
|
|
i6 += 8;
|
|
i5 = (i5 + i6) & i4;
|
|
}
|
|
}
|
|
|
|
public final int findElementIndex$collection(int i) {
|
|
int hashCode = Integer.hashCode(i) * ScatterMapKt.MurmurHashC1;
|
|
int i2 = hashCode ^ (hashCode << 16);
|
|
int i3 = i2 & 127;
|
|
int i4 = this._capacity;
|
|
int i5 = (i2 >>> 7) & i4;
|
|
int i6 = 0;
|
|
while (true) {
|
|
long[] jArr = this.metadata;
|
|
int i7 = i5 >> 3;
|
|
int i8 = (i5 & 7) << 3;
|
|
long j = ((jArr[i7 + 1] << (64 - i8)) & ((-i8) >> 63)) | (jArr[i7] >>> i8);
|
|
long j2 = (i3 * ScatterMapKt.BitmaskLsb) ^ j;
|
|
for (long j3 = (~j2) & (j2 - ScatterMapKt.BitmaskLsb) & (-9187201950435737472L); j3 != 0; j3 &= j3 - 1) {
|
|
int numberOfTrailingZeros = ((Long.numberOfTrailingZeros(j3) >> 3) + i5) & i4;
|
|
if (this.elements[numberOfTrailingZeros] == i) {
|
|
return numberOfTrailingZeros;
|
|
}
|
|
}
|
|
if ((j & ((~j) << 6) & (-9187201950435737472L)) != 0) {
|
|
return -1;
|
|
}
|
|
i6 += 8;
|
|
i5 = (i5 + i6) & i4;
|
|
}
|
|
}
|
|
}
|