- 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
99 lines
4.3 KiB
Java
99 lines
4.3 KiB
Java
package androidx.collection;
|
|
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nObjectList.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ObjectList.kt\nandroidx/collection/ObjectListKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 ObjectList.kt\nandroidx/collection/MutableObjectList\n*L\n1#1,1618:1\n1#2:1619\n948#3,2:1620\n948#3,2:1622\n948#3,2:1624\n948#3,2:1626\n948#3,2:1628\n948#3,2:1630\n*S KotlinDebug\n*F\n+ 1 ObjectList.kt\nandroidx/collection/ObjectListKt\n*L\n1587#1:1620,2\n1596#1:1622,2\n1597#1:1624,2\n1607#1:1626,2\n1608#1:1628,2\n1609#1:1630,2\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class ObjectListKt {
|
|
private static final Object[] EmptyArray = new Object[0];
|
|
private static final ObjectList<Object> EmptyObjectList = new MutableObjectList(0);
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void checkIndex(List<?> list, int i) {
|
|
int size = list.size();
|
|
if (i < 0 || i >= size) {
|
|
throw new IndexOutOfBoundsException("Index " + i + " is out of bounds. The list has " + size + " elements.");
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void checkSubIndex(List<?> list, int i, int i2) {
|
|
int size = list.size();
|
|
if (i > i2) {
|
|
throw new IllegalArgumentException("Indices are out of order. fromIndex (" + i + ") is greater than toIndex (" + i2 + ").");
|
|
}
|
|
if (i < 0) {
|
|
throw new IndexOutOfBoundsException("fromIndex (" + i + ") is less than 0.");
|
|
}
|
|
if (i2 <= size) {
|
|
return;
|
|
}
|
|
throw new IndexOutOfBoundsException("toIndex (" + i2 + ") is more than than the list size (" + size + ')');
|
|
}
|
|
|
|
public static final <E> ObjectList<E> emptyObjectList() {
|
|
ObjectList<E> objectList = (ObjectList<E>) EmptyObjectList;
|
|
Intrinsics.checkNotNull(objectList, "null cannot be cast to non-null type androidx.collection.ObjectList<E of androidx.collection.ObjectListKt.emptyObjectList>");
|
|
return objectList;
|
|
}
|
|
|
|
public static final <E> ObjectList<E> objectListOf() {
|
|
ObjectList<E> objectList = (ObjectList<E>) EmptyObjectList;
|
|
Intrinsics.checkNotNull(objectList, "null cannot be cast to non-null type androidx.collection.ObjectList<E of androidx.collection.ObjectListKt.objectListOf>");
|
|
return objectList;
|
|
}
|
|
|
|
public static final <E> ObjectList<E> objectListOf(E e) {
|
|
return mutableObjectListOf(e);
|
|
}
|
|
|
|
public static final <E> ObjectList<E> objectListOf(E e, E e2) {
|
|
return mutableObjectListOf(e, e2);
|
|
}
|
|
|
|
public static final <E> ObjectList<E> objectListOf(E e, E e2, E e3) {
|
|
return mutableObjectListOf(e, e2, e3);
|
|
}
|
|
|
|
public static final <E> ObjectList<E> objectListOf(E... elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
MutableObjectList mutableObjectList = new MutableObjectList(elements.length);
|
|
mutableObjectList.plusAssign((Object[]) elements);
|
|
return mutableObjectList;
|
|
}
|
|
|
|
public static final <E> MutableObjectList<E> mutableObjectListOf() {
|
|
return new MutableObjectList<>(0, 1, null);
|
|
}
|
|
|
|
public static final <E> MutableObjectList<E> mutableObjectListOf(E e) {
|
|
MutableObjectList<E> mutableObjectList = new MutableObjectList<>(1);
|
|
mutableObjectList.add(e);
|
|
return mutableObjectList;
|
|
}
|
|
|
|
public static final <E> MutableObjectList<E> mutableObjectListOf(E e, E e2) {
|
|
MutableObjectList<E> mutableObjectList = new MutableObjectList<>(2);
|
|
mutableObjectList.add(e);
|
|
mutableObjectList.add(e2);
|
|
return mutableObjectList;
|
|
}
|
|
|
|
public static final <E> MutableObjectList<E> mutableObjectListOf(E e, E e2, E e3) {
|
|
MutableObjectList<E> mutableObjectList = new MutableObjectList<>(3);
|
|
mutableObjectList.add(e);
|
|
mutableObjectList.add(e2);
|
|
mutableObjectList.add(e3);
|
|
return mutableObjectList;
|
|
}
|
|
|
|
public static final <E> MutableObjectList<E> mutableObjectListOf(E... elements) {
|
|
Intrinsics.checkNotNullParameter(elements, "elements");
|
|
MutableObjectList<E> mutableObjectList = new MutableObjectList<>(elements.length);
|
|
mutableObjectList.plusAssign((Object[]) elements);
|
|
return mutableObjectList;
|
|
}
|
|
}
|