package o;

import java.util.Iterator;
import java.util.NoSuchElementException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.cI, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0895cI implements Iterator, InterfaceC2989yJ {
    public final int l;
    public final int m;
    public boolean n;

    /* renamed from: o, reason: collision with root package name */
    public int f474o;

    public C0895cI(int i, int i2, int i3) {
        this.l = i3;
        this.m = i2;
        boolean z = false;
        if (i3 <= 0 ? i >= i2 : i <= i2) {
            z = true;
        }
        this.n = z;
        this.f474o = z ? i : i2;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.n;
    }

    @Override // java.util.Iterator
    public final /* bridge */ /* synthetic */ Object next() {
        return Integer.valueOf(nextInt());
    }

    public final int nextInt() {
        int i = this.f474o;
        if (i != this.m) {
            this.f474o = this.l + i;
            return i;
        }
        if (!this.n) {
            throw new NoSuchElementException();
        }
        this.n = false;
        return i;
    }

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