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

38 lines
842 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Iterator;
/* loaded from: classes.dex */
public final class paq<T> implements Iterator<T> {
private Iterator<? extends T> a;
private final Iterable<? extends T> e;
public paq(Iterable<? extends T> iterable) {
this.e = iterable;
}
@Override // java.util.Iterator
public final boolean hasNext() {
if (this.a == null) {
this.a = this.e.iterator();
}
return this.a.hasNext();
}
@Override // java.util.Iterator
public final T next() {
if (this.a == null) {
this.a = this.e.iterator();
}
return this.a.next();
}
@Override // java.util.Iterator
public final void remove() {
if (this.a == null) {
this.a = this.e.iterator();
}
this.a.remove();
}
}