87 lines
2.3 KiB
Java
87 lines
2.3 KiB
Java
package o;
|
|
|
|
/* renamed from: o.fXi, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C13335fXi<T> extends AbstractC13159fSg<T> {
|
|
private InterfaceC13169fSq<T> d;
|
|
|
|
public C13335fXi(InterfaceC13169fSq<T> interfaceC13169fSq) {
|
|
this.d = interfaceC13169fSq;
|
|
}
|
|
|
|
@Override // o.AbstractC13159fSg
|
|
public final void a(InterfaceC13161fSi<? super T> interfaceC13161fSi) {
|
|
this.d.subscribe(new HBt(interfaceC13161fSi));
|
|
}
|
|
|
|
/* renamed from: o.fXi$HBt */
|
|
/* loaded from: classes6.dex */
|
|
static final class HBt<T> implements InterfaceC13174fSv<T>, fSJ {
|
|
private boolean a;
|
|
private InterfaceC13161fSi<? super T> b;
|
|
private fSJ d;
|
|
private T e;
|
|
|
|
HBt(InterfaceC13161fSi<? super T> interfaceC13161fSi) {
|
|
this.b = interfaceC13161fSi;
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onSubscribe(fSJ fsj) {
|
|
if (EnumC13192fTf.d(this.d, fsj)) {
|
|
this.d = fsj;
|
|
this.b.onSubscribe(this);
|
|
}
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final void dispose() {
|
|
this.d.dispose();
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final boolean isDisposed() {
|
|
return this.d.isDisposed();
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
if (this.a) {
|
|
return;
|
|
}
|
|
if (this.e == null) {
|
|
this.e = t;
|
|
return;
|
|
}
|
|
this.a = true;
|
|
this.d.dispose();
|
|
this.b.onError(new IllegalArgumentException("Sequence contains more than one element!"));
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
if (this.a) {
|
|
C13418fZu.c(th);
|
|
} else {
|
|
this.a = true;
|
|
this.b.onError(th);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
if (this.a) {
|
|
return;
|
|
}
|
|
this.a = true;
|
|
T t = this.e;
|
|
this.e = null;
|
|
if (t == null) {
|
|
this.b.onComplete();
|
|
} else {
|
|
this.b.e(t);
|
|
}
|
|
}
|
|
}
|
|
}
|