71 lines
1.5 KiB
Java
71 lines
1.5 KiB
Java
package o;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zEQ<T> {
|
|
private static final zEQ<?> a = new zEQ<>();
|
|
public final T d;
|
|
|
|
public static <T> zEQ<T> a(T t) {
|
|
return new zEQ<>(t);
|
|
}
|
|
|
|
private zEQ() {
|
|
this.d = null;
|
|
}
|
|
|
|
private zEQ(T t) {
|
|
this.d = t;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof zEQ)) {
|
|
return false;
|
|
}
|
|
T t = this.d;
|
|
T t2 = ((zEQ) obj).d;
|
|
if (t != t2) {
|
|
return t != null && t.equals(t2);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final String toString() {
|
|
T t = this.d;
|
|
return t != null ? String.format("Optional[%s]", t) : "Optional.empty";
|
|
}
|
|
|
|
public static <T> zEQ<T> b(T t) {
|
|
if (t == null) {
|
|
return (zEQ<T>) a;
|
|
}
|
|
return new zEQ<>(t);
|
|
}
|
|
|
|
public final int hashCode() {
|
|
T t = this.d;
|
|
if (t != null) {
|
|
return t.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final <U> zEQ<U> b(InterfaceC1244Ytw<? super T, ? extends U> interfaceC1244Ytw) {
|
|
T t = this.d;
|
|
if (t != null) {
|
|
U d = interfaceC1244Ytw.d(t);
|
|
if (d == null) {
|
|
return (zEQ<U>) a;
|
|
}
|
|
return new zEQ<>(d);
|
|
}
|
|
return (zEQ<U>) a;
|
|
}
|
|
|
|
public static <T> zEQ<T> d() {
|
|
return (zEQ<T>) a;
|
|
}
|
|
}
|