discord-jadx/app/src/main/java/d0/t/b.java

52 lines
1.2 KiB
Java

package d0.t;
import d0.z.d.g0.a;
import java.util.Iterator;
import java.util.NoSuchElementException;
/* compiled from: AbstractIterator.kt */
public abstract class b<T> implements Iterator<T>, a {
public int i = 2;
public T j;
public abstract void a();
public final void b(T t) {
this.j = t;
this.i = 1;
}
@Override // java.util.Iterator
public boolean hasNext() {
int i = this.i;
if (i != 4) {
int h = c.c.a.y.b.h(i);
if (h != 0) {
if (h == 2) {
return false;
}
this.i = 4;
a();
if (this.i != 1) {
return false;
}
}
return true;
}
throw new IllegalArgumentException("Failed requirement.".toString());
}
@Override // java.util.Iterator
public T next() {
if (hasNext()) {
this.i = 2;
return this.j;
}
throw new NoSuchElementException();
}
@Override // java.util.Iterator
public void remove() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
}