package FSaI4_7.Xgtqvk_8.QxJ9d_1;

import java.util.Iterator;
import java.util.NoSuchElementException;
/* compiled from: ArrayIterator.kt */
/* loaded from: classes.dex */
public final class KQgRr5e_0<T> implements Iterator<T> {
    public int KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final T[] f6KQgRr5e_0;

    public KQgRr5e_0(T[] tArr) {
        IFxWkV_5.QxJ9d_1(tArr, "array");
        this.f6KQgRr5e_0 = tArr;
    }

    @Override // java.util.Iterator
    public boolean hasNext() {
        return this.KQgRr5e_0 < this.f6KQgRr5e_0.length;
    }

    @Override // java.util.Iterator
    public T next() {
        try {
            T[] tArr = this.f6KQgRr5e_0;
            int i = this.KQgRr5e_0;
            this.KQgRr5e_0 = i + 1;
            return tArr[i];
        } catch (ArrayIndexOutOfBoundsException e) {
            this.KQgRr5e_0--;
            throw new NoSuchElementException(e.getMessage());
        }
    }

    @Override // java.util.Iterator
    public void remove() {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }
}
