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

40 lines
1.0 KiB
Java

package o;
import java.util.Iterator;
import java.util.NoSuchElementException;
/* renamed from: o.gcl, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C14947gcl<T> implements Iterator<T>, InterfaceC14932gcO {
private final T[] c;
private int d;
public C14947gcl(T[] tArr) {
C14957gcv.e(tArr, "");
this.c = tArr;
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.d < this.c.length;
}
@Override // java.util.Iterator
public final T next() {
try {
T[] tArr = this.c;
int i = this.d;
this.d = i + 1;
return tArr[i];
} catch (ArrayIndexOutOfBoundsException e) {
this.d--;
throw new NoSuchElementException(e.getMessage());
}
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
}