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

72 lines
2.0 KiB
Java

package o;
/* renamed from: o.fWx, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13315fWx<T> extends AbstractC13159fSg<T> {
private InterfaceC13169fSq<T> e;
public C13315fWx(InterfaceC13169fSq<T> interfaceC13169fSq) {
this.e = interfaceC13169fSq;
}
@Override // o.AbstractC13159fSg
public final void a(InterfaceC13161fSi<? super T> interfaceC13161fSi) {
this.e.subscribe(new IeS(interfaceC13161fSi));
}
/* renamed from: o.fWx$IeS */
/* loaded from: classes6.dex */
static final class IeS<T> implements InterfaceC13174fSv<T>, fSJ {
private T c;
private fSJ d;
private InterfaceC13161fSi<? super T> e;
IeS(InterfaceC13161fSi<? super T> interfaceC13161fSi) {
this.e = interfaceC13161fSi;
}
@Override // o.fSJ
public final void dispose() {
this.d.dispose();
this.d = EnumC13192fTf.DISPOSED;
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.d == EnumC13192fTf.DISPOSED;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.d, fsj)) {
this.d = fsj;
this.e.onSubscribe(this);
}
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
this.d = EnumC13192fTf.DISPOSED;
this.c = null;
this.e.onError(th);
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
this.d = EnumC13192fTf.DISPOSED;
T t = this.c;
if (t != null) {
this.c = null;
this.e.e(t);
} else {
this.e.onComplete();
}
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
this.c = t;
}
}
}