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

82 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import o.C1050UnO;
import o.RDy;
import o.ykj;
/* loaded from: classes.dex */
final class iYo<Z> implements Ezi<Z>, C1050UnO.Sts {
private static final RDy.Sts<iYo<?>> e = C1050UnO.c(20, new C1050UnO.RVV<iYo<?>>() { // from class: o.iYo.1
@Override // o.C1050UnO.RVV
public final /* synthetic */ iYo<?> e() {
return new iYo<>();
}
});
private Ezi<Z> a;
private final ykj b = new ykj.LWm();
private boolean c;
private boolean d;
/* JADX INFO: Access modifiers changed from: package-private */
public static <Z> iYo<Z> e(Ezi<Z> ezi) {
iYo<Z> iyo = (iYo) e.d();
if (iyo == null) {
throw new NullPointerException("Argument must not be null");
}
((iYo) iyo).d = false;
((iYo) iyo).c = true;
((iYo) iyo).a = ezi;
return iyo;
}
iYo() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void j() {
synchronized (this) {
this.b.b();
if (!this.c) {
throw new IllegalStateException("Already unlocked");
}
this.c = false;
if (this.d) {
b();
}
}
}
@Override // o.Ezi
public final Class<Z> d() {
return this.a.d();
}
@Override // o.Ezi
public final Z e() {
return this.a.e();
}
@Override // o.Ezi
public final int a() {
return this.a.a();
}
@Override // o.Ezi
public final void b() {
synchronized (this) {
this.b.b();
this.d = true;
if (!this.c) {
this.a.b();
this.a = null;
e.d(this);
}
}
}
@Override // o.C1050UnO.Sts
public final ykj c() {
return this.b;
}
}