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

100 lines
2.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Objects;
/* renamed from: o.fVl, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13268fVl<T, U> extends AbstractC13175fSw<U> implements InterfaceC13204fTr<U> {
private InterfaceC13169fSq<T> a;
private InterfaceC13189fTc<? extends U> b;
private fSK<? super U, ? super T> c;
public C13268fVl(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13189fTc<? extends U> interfaceC13189fTc, fSK<? super U, ? super T> fsk) {
this.a = interfaceC13169fSq;
this.b = interfaceC13189fTc;
this.c = fsk;
}
@Override // o.AbstractC13175fSw
public final void e(InterfaceC13176fSx<? super U> interfaceC13176fSx) {
try {
this.a.subscribe(new RVV(interfaceC13176fSx, Objects.requireNonNull(this.b.d(), "The initialSupplier returned a null value"), this.c));
} catch (Throwable th) {
C13147fSI.c(th);
EnumC13195fTi.c(th, interfaceC13176fSx);
}
}
@Override // o.InterfaceC13204fTr
public final AbstractC13163fSk<U> b() {
return new C13267fVk(this.a, this.b, this.c);
}
/* renamed from: o.fVl$RVV */
/* loaded from: classes6.dex */
static final class RVV<T, U> implements InterfaceC13174fSv<T>, fSJ {
private fSJ a;
private boolean b;
private fSK<? super U, ? super T> c;
private InterfaceC13176fSx<? super U> d;
private U e;
RVV(InterfaceC13176fSx<? super U> interfaceC13176fSx, U u, fSK<? super U, ? super T> fsk) {
this.d = interfaceC13176fSx;
this.c = fsk;
this.e = u;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.a, fsj)) {
this.a = fsj;
this.d.onSubscribe(this);
}
}
@Override // o.fSJ
public final void dispose() {
this.a.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.a.isDisposed();
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (this.b) {
return;
}
try {
this.c.b(this.e, t);
} catch (Throwable th) {
C13147fSI.c(th);
this.a.dispose();
onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.b) {
C13418fZu.c(th);
} else {
this.b = true;
this.d.onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
if (this.b) {
return;
}
this.b = true;
this.d.e(this.e);
}
}
}