package o; /* loaded from: classes.dex */ public final class zEQ { private static final zEQ a = new zEQ<>(); public final T d; public static zEQ 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 zEQ b(T t) { if (t == null) { return (zEQ) a; } return new zEQ<>(t); } public final int hashCode() { T t = this.d; if (t != null) { return t.hashCode(); } return 0; } public final zEQ b(InterfaceC1244Ytw interfaceC1244Ytw) { T t = this.d; if (t != null) { U d = interfaceC1244Ytw.d(t); if (d == null) { return (zEQ) a; } return new zEQ<>(d); } return (zEQ) a; } public static zEQ d() { return (zEQ) a; } }