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

27 lines
543 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 KeH<T> extends GGK<T> {
private final Iterator<? extends T> a;
private long b = 0;
private final long e;
public KeH(Iterator<? extends T> it, long j) {
this.a = it;
this.e = j;
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.b < this.e && this.a.hasNext();
}
@Override // o.GGK
public final T a() {
this.b++;
return this.a.next();
}
}