42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package o;
|
|
|
|
/* renamed from: o.gls, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15264gls {
|
|
public static <T> T c(T t, String str) {
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" may not be null");
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
|
|
public static <T extends CharSequence> T e(T t, String str) {
|
|
if (t == null) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" may not be null");
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
if (!C15270gly.c(t)) {
|
|
return t;
|
|
}
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(str);
|
|
sb2.append(" may not be blank");
|
|
throw new IllegalArgumentException(sb2.toString());
|
|
}
|
|
|
|
public static int e(int i, String str) {
|
|
if (i >= 0) {
|
|
return i;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" may not be negative");
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
}
|