- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
988 B
Java
27 lines
988 B
Java
package kotlin.collections;
|
|
|
|
import java.lang.reflect.Array;
|
|
import java.util.Arrays;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class ArraysKt__ArraysJVMKt {
|
|
public static final Object[] arrayOfNulls(Object[] reference, int i) {
|
|
Intrinsics.checkNotNullParameter(reference, "reference");
|
|
Object newInstance = Array.newInstance(reference.getClass().getComponentType(), i);
|
|
Intrinsics.checkNotNull(newInstance, "null cannot be cast to non-null type kotlin.Array<T of kotlin.collections.ArraysKt__ArraysJVMKt.arrayOfNulls>");
|
|
return (Object[]) newInstance;
|
|
}
|
|
|
|
public static final void copyOfRangeToIndexCheck(int i, int i2) {
|
|
if (i <= i2) {
|
|
return;
|
|
}
|
|
throw new IndexOutOfBoundsException("toIndex (" + i + ") is greater than size (" + i2 + ").");
|
|
}
|
|
|
|
public static int contentDeepHashCode(Object[] objArr) {
|
|
return Arrays.deepHashCode(objArr);
|
|
}
|
|
}
|