143 lines
4.5 KiB
Java
143 lines
4.5 KiB
Java
package o;
|
|
|
|
import java.util.Arrays;
|
|
import kotlin.KotlinNullPointerException;
|
|
import kotlin.UninitializedPropertyAccessException;
|
|
|
|
/* renamed from: o.gcv, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public class C14957gcv {
|
|
public static int a(int i, int i2) {
|
|
if (i < i2) {
|
|
return -1;
|
|
}
|
|
return i == i2 ? 0 : 1;
|
|
}
|
|
|
|
public static int e(long j) {
|
|
if (j < 0) {
|
|
return -1;
|
|
}
|
|
return j == 0 ? 0 : 1;
|
|
}
|
|
|
|
private C14957gcv() {
|
|
}
|
|
|
|
public static String c(String str, Object obj) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(obj);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static void b() {
|
|
throw ((KotlinNullPointerException) a(new KotlinNullPointerException()));
|
|
}
|
|
|
|
public static void a(String str) {
|
|
StringBuilder sb = new StringBuilder("lateinit property ");
|
|
sb.append(str);
|
|
sb.append(" has not been initialized");
|
|
throw ((UninitializedPropertyAccessException) c(new UninitializedPropertyAccessException(sb.toString()), C14957gcv.class.getName()));
|
|
}
|
|
|
|
public static void a(Object obj, String str) {
|
|
if (obj != null) {
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" must not be null");
|
|
throw ((IllegalStateException) c(new IllegalStateException(sb.toString()), C14957gcv.class.getName()));
|
|
}
|
|
|
|
public static void c(Object obj, String str) {
|
|
if (obj != null) {
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" must not be null");
|
|
throw ((NullPointerException) c(new NullPointerException(sb.toString()), C14957gcv.class.getName()));
|
|
}
|
|
|
|
private static String d(String str) {
|
|
StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[4];
|
|
String className = stackTraceElement.getClassName();
|
|
String methodName = stackTraceElement.getMethodName();
|
|
StringBuilder sb = new StringBuilder("Parameter specified as non-null is null: method ");
|
|
sb.append(className);
|
|
sb.append(".");
|
|
sb.append(methodName);
|
|
sb.append(", parameter ");
|
|
sb.append(str);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static boolean b(Object obj, Object obj2) {
|
|
if (obj == null) {
|
|
return obj2 == null;
|
|
}
|
|
return obj.equals(obj2);
|
|
}
|
|
|
|
public static boolean e(Double d, Double d2) {
|
|
return d != null ? !(d2 == null || d.doubleValue() != d2.doubleValue()) : d2 == null;
|
|
}
|
|
|
|
public static boolean c(Double d) {
|
|
return d != null && d.doubleValue() == 0.0d;
|
|
}
|
|
|
|
public static boolean a(double d, Double d2) {
|
|
return d2 != null && d == d2.doubleValue();
|
|
}
|
|
|
|
private static <T extends Throwable> T a(T t) {
|
|
return (T) c((Throwable) t, C14957gcv.class.getName());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T extends Throwable> T c(T t, String str) {
|
|
StackTraceElement[] stackTrace = t.getStackTrace();
|
|
int length = stackTrace.length;
|
|
int i = -1;
|
|
for (int i2 = 0; i2 < length; i2++) {
|
|
if (str.equals(stackTrace[i2].getClassName())) {
|
|
i = i2;
|
|
}
|
|
}
|
|
t.setStackTrace((StackTraceElement[]) Arrays.copyOfRange(stackTrace, i + 1, length));
|
|
return t;
|
|
}
|
|
|
|
public static void e(Object obj) {
|
|
if (obj == null) {
|
|
throw ((NullPointerException) c(new NullPointerException(), C14957gcv.class.getName()));
|
|
}
|
|
}
|
|
|
|
public static void d(Object obj, String str) {
|
|
if (obj == null) {
|
|
throw ((NullPointerException) c(new NullPointerException(str), C14957gcv.class.getName()));
|
|
}
|
|
}
|
|
|
|
public static void e(Object obj, String str) {
|
|
if (obj == null) {
|
|
throw ((NullPointerException) c(new NullPointerException(d(str)), C14957gcv.class.getName()));
|
|
}
|
|
}
|
|
|
|
public static void b(Object obj, String str) {
|
|
if (obj == null) {
|
|
throw ((IllegalArgumentException) c(new IllegalArgumentException(d(str)), C14957gcv.class.getName()));
|
|
}
|
|
}
|
|
|
|
public static void a() {
|
|
throw new UnsupportedOperationException("This function has a reified type parameter and thus can only be inlined at compilation time, not called directly.");
|
|
}
|
|
}
|