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

88 lines
2.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes6.dex */
public final class fUZ<T> extends fUX<T, Boolean> {
private InterfaceC13193fTg<? super T> d;
public fUZ(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
super(interfaceC13169fSq);
this.d = interfaceC13193fTg;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super Boolean> interfaceC13174fSv) {
this.c.subscribe(new RVV(interfaceC13174fSv, this.d));
}
/* loaded from: classes6.dex */
static final class RVV<T> implements InterfaceC13174fSv<T>, fSJ {
private InterfaceC13193fTg<? super T> b;
private boolean c;
private InterfaceC13174fSv<? super Boolean> d;
private fSJ e;
RVV(InterfaceC13174fSv<? super Boolean> interfaceC13174fSv, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
this.d = interfaceC13174fSv;
this.b = interfaceC13193fTg;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.e, fsj)) {
this.e = fsj;
this.d.onSubscribe(this);
}
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (this.c) {
return;
}
try {
if (this.b.a(t)) {
return;
}
this.c = true;
this.e.dispose();
this.d.onNext(Boolean.FALSE);
this.d.onComplete();
} catch (Throwable th) {
C13147fSI.c(th);
this.e.dispose();
onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.c) {
C13418fZu.c(th);
} else {
this.c = true;
this.d.onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
if (this.c) {
return;
}
this.c = true;
this.d.onNext(Boolean.TRUE);
this.d.onComplete();
}
@Override // o.fSJ
public final void dispose() {
this.e.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.e.isDisposed();
}
}
}