89 lines
2.4 KiB
Java
89 lines
2.4 KiB
Java
package o;
|
|
|
|
import java.util.Iterator;
|
|
import java.util.NoSuchElementException;
|
|
|
|
/* renamed from: o.fUT, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C13220fUT<T> implements Iterable<T> {
|
|
private InterfaceC13169fSq<T> a;
|
|
private T b;
|
|
|
|
public C13220fUT(InterfaceC13169fSq<T> interfaceC13169fSq, T t) {
|
|
this.a = interfaceC13169fSq;
|
|
this.b = t;
|
|
}
|
|
|
|
@Override // java.lang.Iterable
|
|
public final Iterator<T> iterator() {
|
|
Sts sts = new Sts(this.b);
|
|
this.a.subscribe(sts);
|
|
return new Sts.IeS(sts);
|
|
}
|
|
|
|
/* renamed from: o.fUT$Sts */
|
|
/* loaded from: classes6.dex */
|
|
static final class Sts<T> extends AbstractC13398fZa<T> {
|
|
volatile Object d;
|
|
|
|
Sts(T t) {
|
|
this.d = fYX.d(t);
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
this.d = fYX.c();
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
this.d = fYX.a(th);
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
this.d = fYX.d(t);
|
|
}
|
|
|
|
/* renamed from: o.fUT$Sts$IeS */
|
|
/* loaded from: classes6.dex */
|
|
final class IeS implements Iterator<T> {
|
|
private Sts a;
|
|
private Object b;
|
|
|
|
IeS(Sts sts) {
|
|
this.a = sts;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final boolean hasNext() {
|
|
this.b = this.a.d;
|
|
return !fYX.e(r0);
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final T next() {
|
|
try {
|
|
if (this.b == null) {
|
|
this.b = this.a.d;
|
|
}
|
|
if (fYX.e(this.b)) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
if (fYX.b(this.b)) {
|
|
throw fYR.c(fYX.a(this.b));
|
|
}
|
|
return (T) fYX.c(this.b);
|
|
} finally {
|
|
this.b = null;
|
|
}
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final void remove() {
|
|
throw new UnsupportedOperationException("Read only iterator");
|
|
}
|
|
}
|
|
}
|
|
}
|