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 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 ObjectList emptyObjectList() { ObjectList objectList = (ObjectList) EmptyObjectList; Intrinsics.checkNotNull(objectList, "null cannot be cast to non-null type androidx.collection.ObjectList"); return objectList; } public static final ObjectList objectListOf() { ObjectList objectList = (ObjectList) EmptyObjectList; Intrinsics.checkNotNull(objectList, "null cannot be cast to non-null type androidx.collection.ObjectList"); return objectList; } public static final ObjectList objectListOf(E e) { return mutableObjectListOf(e); } public static final ObjectList objectListOf(E e, E e2) { return mutableObjectListOf(e, e2); } public static final ObjectList objectListOf(E e, E e2, E e3) { return mutableObjectListOf(e, e2, e3); } public static final ObjectList objectListOf(E... elements) { Intrinsics.checkNotNullParameter(elements, "elements"); MutableObjectList mutableObjectList = new MutableObjectList(elements.length); mutableObjectList.plusAssign((Object[]) elements); return mutableObjectList; } public static final MutableObjectList mutableObjectListOf() { return new MutableObjectList<>(0, 1, null); } public static final MutableObjectList mutableObjectListOf(E e) { MutableObjectList mutableObjectList = new MutableObjectList<>(1); mutableObjectList.add(e); return mutableObjectList; } public static final MutableObjectList mutableObjectListOf(E e, E e2) { MutableObjectList mutableObjectList = new MutableObjectList<>(2); mutableObjectList.add(e); mutableObjectList.add(e2); return mutableObjectList; } public static final MutableObjectList mutableObjectListOf(E e, E e2, E e3) { MutableObjectList mutableObjectList = new MutableObjectList<>(3); mutableObjectList.add(e); mutableObjectList.add(e2); mutableObjectList.add(e3); return mutableObjectList; } public static final MutableObjectList mutableObjectListOf(E... elements) { Intrinsics.checkNotNullParameter(elements, "elements"); MutableObjectList mutableObjectList = new MutableObjectList<>(elements.length); mutableObjectList.plusAssign((Object[]) elements); return mutableObjectList; } }