package androidx.core.util; /* loaded from: classes.dex */ public class Preconditions { public static T a(T t) { if (t != null) { return t; } throw new NullPointerException(); } public static 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(); } }