what-the-bank/sources/o/wrW.java

66 lines
1.7 KiB
Java

package o;
import android.text.TextUtils;
import java.security.MessageDigest;
/* loaded from: classes.dex */
public final class wrW<T> {
private static final LWm<Object> e = new LWm<Object>() { // from class: o.wrW.5
@Override // o.wrW.LWm
public final void d(byte[] bArr, Object obj, MessageDigest messageDigest) {
}
};
public final T a;
final LWm<T> b;
final String c;
volatile byte[] d;
/* loaded from: classes.dex */
public interface LWm<T> {
void d(byte[] bArr, T t, MessageDigest messageDigest);
}
public static <T> wrW<T> c(String str) {
return new wrW<>(str, null, e);
}
public static <T> wrW<T> a(String str, T t) {
return new wrW<>(str, t, e);
}
public static <T> wrW<T> a(String str, T t, LWm<T> lWm) {
return new wrW<>(str, t, lWm);
}
private wrW(String str, T t, LWm<T> lWm) {
if (!TextUtils.isEmpty(str)) {
this.c = str;
this.a = t;
if (lWm == null) {
throw new NullPointerException("Argument must not be null");
}
this.b = lWm;
return;
}
throw new IllegalArgumentException("Must not be null or empty");
}
public final boolean equals(Object obj) {
if (obj instanceof wrW) {
return this.c.equals(((wrW) obj).c);
}
return false;
}
public final int hashCode() {
return this.c.hashCode();
}
public final String toString() {
StringBuilder sb = new StringBuilder("Option{key='");
sb.append(this.c);
sb.append("'}");
return sb.toString();
}
}