Initial commit
This commit is contained in:
25
sources/androidx/core/util/Preconditions.java
Normal file
25
sources/androidx/core/util/Preconditions.java
Normal file
@@ -0,0 +1,25 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user