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

61 lines
1.5 KiB
Java

package o;
import java.util.Objects;
/* renamed from: o.fSn, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13166fSn<T> {
private static C13166fSn<Object> d = new C13166fSn<>(null);
public final Object a;
private C13166fSn(Object obj) {
this.a = obj;
}
public final boolean equals(Object obj) {
if (obj instanceof C13166fSn) {
return Objects.equals(this.a, ((C13166fSn) obj).a);
}
return false;
}
public final int hashCode() {
Object obj = this.a;
if (obj != null) {
return obj.hashCode();
}
return 0;
}
public final String toString() {
Object obj = this.a;
if (obj == null) {
return "OnCompleteNotification";
}
if (fYX.b(obj)) {
StringBuilder sb = new StringBuilder("OnErrorNotification[");
sb.append(fYX.a(obj));
sb.append("]");
return sb.toString();
}
StringBuilder sb2 = new StringBuilder("OnNextNotification[");
sb2.append(this.a);
sb2.append("]");
return sb2.toString();
}
public static <T> C13166fSn<T> a(T t) {
Objects.requireNonNull(t, "value is null");
return new C13166fSn<>(t);
}
public static <T> C13166fSn<T> a(Throwable th) {
Objects.requireNonNull(th, "error is null");
return new C13166fSn<>(fYX.a(th));
}
public static <T> C13166fSn<T> e() {
return (C13166fSn<T>) d;
}
}