38 lines
842 B
Java
38 lines
842 B
Java
|
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();
|
||
|
}
|
||
|
}
|