28 lines
636 B
Java
28 lines
636 B
Java
package com.google.firebase.components;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class Preconditions {
|
|
public static <T> T checkNotNull(T t) {
|
|
return t;
|
|
}
|
|
|
|
public static void checkArgument(boolean z, String str) {
|
|
if (!z) {
|
|
throw new IllegalArgumentException(str);
|
|
}
|
|
}
|
|
|
|
public static <T> T checkNotNull(T t, String str) {
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
throw new NullPointerException(str);
|
|
}
|
|
|
|
public static void checkState(boolean z, String str) {
|
|
if (!z) {
|
|
throw new IllegalStateException(str);
|
|
}
|
|
}
|
|
}
|