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

38 lines
857 B
Java

package o;
import java.util.NoSuchElementException;
/* renamed from: o.fTx, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13210fTx<T> extends fTC<T> {
private boolean b;
private T d;
public C13210fTx(boolean z, T t) {
this.b = z;
this.d = t;
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
this.c = t;
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
if (isDone()) {
return;
}
T t = this.c;
this.c = null;
this.a.lazySet(EnumC13192fTf.DISPOSED);
if (t != null) {
complete(t);
} else if (this.b) {
complete(this.d);
} else {
completeExceptionally(new NoSuchElementException());
}
}
}