package o; import java.util.Iterator; /* loaded from: classes.dex */ public final class KeH extends GGK { private final Iterator a; private long b = 0; private final long e; public KeH(Iterator 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(); } }