50 lines
1.3 KiB
Java
50 lines
1.3 KiB
Java
|
package o;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class fZZ<T> implements InterfaceC13393fZL<T>, Serializable {
|
||
|
private final Object b;
|
||
|
private volatile Object c;
|
||
|
private InterfaceC14890gbN<? extends T> e;
|
||
|
|
||
|
public /* synthetic */ fZZ(InterfaceC14890gbN interfaceC14890gbN) {
|
||
|
this(interfaceC14890gbN, (byte) 0);
|
||
|
}
|
||
|
|
||
|
private fZZ(InterfaceC14890gbN<? extends T> interfaceC14890gbN, byte b) {
|
||
|
C14957gcv.e(interfaceC14890gbN, "");
|
||
|
this.e = interfaceC14890gbN;
|
||
|
this.c = C14867gah.b;
|
||
|
this.b = this;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13393fZL
|
||
|
public final T e() {
|
||
|
T t;
|
||
|
T t2 = (T) this.c;
|
||
|
if (t2 != C14867gah.b) {
|
||
|
return t2;
|
||
|
}
|
||
|
synchronized (this.b) {
|
||
|
t = (T) this.c;
|
||
|
if (t == C14867gah.b) {
|
||
|
InterfaceC14890gbN<? extends T> interfaceC14890gbN = this.e;
|
||
|
C14957gcv.e(interfaceC14890gbN);
|
||
|
t = interfaceC14890gbN.invoke();
|
||
|
this.c = t;
|
||
|
this.e = null;
|
||
|
}
|
||
|
}
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
return this.c != C14867gah.b ? String.valueOf(e()) : "Lazy value not initialized yet.";
|
||
|
}
|
||
|
|
||
|
private final Object writeReplace() {
|
||
|
return new fZM(e());
|
||
|
}
|
||
|
}
|