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

61 lines
1.7 KiB
Java

package o;
/* loaded from: classes6.dex */
public final class fVS<T> extends fUX<T, T> {
private InterfaceC13193fTg<? super T> e;
public fVS(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
super(interfaceC13169fSq);
this.e = interfaceC13193fTg;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
this.c.subscribe(new HBt(interfaceC13174fSv, this.e));
}
/* loaded from: classes6.dex */
static final class HBt<T> extends fTA<T, T> {
private InterfaceC13193fTg<? super T> a;
HBt(InterfaceC13174fSv<? super T> interfaceC13174fSv, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
super(interfaceC13174fSv);
this.a = interfaceC13193fTg;
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (this.b == 0) {
try {
if (this.a.a(t)) {
this.d.onNext(t);
return;
}
return;
} catch (Throwable th) {
b(th);
return;
}
}
this.d.onNext(null);
}
@Override // o.InterfaceC13413fZp
public final int b(int i) {
return e(i);
}
@Override // o.InterfaceC13414fZq
public final T b() throws Throwable {
T b;
do {
b = this.e.b();
if (b == null) {
break;
}
} while (!this.a.a(b));
return b;
}
}
}