26 lines
539 B
Java
26 lines
539 B
Java
package androidx.core.util;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class Preconditions {
|
|
public static <T> T a(T t) {
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
public static <T> T a(T t, Object obj) {
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
throw new NullPointerException(String.valueOf(obj));
|
|
}
|
|
|
|
public static int a(int i) {
|
|
if (i >= 0) {
|
|
return i;
|
|
}
|
|
throw new IllegalArgumentException();
|
|
}
|
|
}
|