package e.t;

import e.o.k;
import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes.dex */
public final class b extends k {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f6021b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f6022c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f6023d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final int f6024e;

    public b(int i2, int i3, int i4) {
        this.f6024e = i4;
        this.f6021b = i3;
        boolean z = true;
        if (i4 <= 0 ? i2 < i3 : i2 > i3) {
            z = false;
        }
        this.f6022c = z;
        this.f6023d = z ? i2 : i3;
    }

    @Override // e.o.k
    public int a() {
        int i2 = this.f6023d;
        if (i2 != this.f6021b) {
            this.f6023d = this.f6024e + i2;
        } else {
            if (!this.f6022c) {
                throw new NoSuchElementException();
            }
            this.f6022c = false;
        }
        return i2;
    }

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