package FSaI4_7.XnFJ5_9;

import FSaI4_7.IFxWkV_5.JZJr_16;
/* compiled from: Progressions.kt */
/* loaded from: classes.dex */
public class KQgRr5e_0 implements Iterable<Integer> {
    public static final C0000KQgRr5e_0 KQgRr5e_0 = new C0000KQgRr5e_0(null);

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final int f7KQgRr5e_0;
    public final int PGPF6hQ_2;
    public final int QxJ9d_1;

    /* compiled from: Progressions.kt */
    /* renamed from: FSaI4_7.XnFJ5_9.KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static final class C0000KQgRr5e_0 {
        public C0000KQgRr5e_0() {
        }

        public final KQgRr5e_0 KQgRr5e_0(int i, int i2, int i3) {
            return new KQgRr5e_0(i, i2, i3);
        }

        public /* synthetic */ C0000KQgRr5e_0(FSaI4_7.Xgtqvk_8.QxJ9d_1.Mqv2r_3 mqv2r_3) {
            this();
        }
    }

    public KQgRr5e_0(int i, int i2, int i3) {
        if (i3 != 0) {
            this.f7KQgRr5e_0 = i;
            this.QxJ9d_1 = FSaI4_7.FSaI4_7.KQgRr5e_0.QxJ9d_1(i, i2, i3);
            this.PGPF6hQ_2 = i3;
            return;
        }
        throw new IllegalArgumentException("Step must be non-zero");
    }

    /* renamed from: KQgRr5e_0 */
    public final int mo10KQgRr5e_0() {
        return this.f7KQgRr5e_0;
    }

    public final int PGPF6hQ_2() {
        return this.PGPF6hQ_2;
    }

    public final int QxJ9d_1() {
        return this.QxJ9d_1;
    }

    public boolean equals(Object obj) {
        if (obj instanceof KQgRr5e_0) {
            if (!isEmpty() || !((KQgRr5e_0) obj).isEmpty()) {
                KQgRr5e_0 kQgRr5e_0 = (KQgRr5e_0) obj;
                if (this.f7KQgRr5e_0 != kQgRr5e_0.f7KQgRr5e_0 || this.QxJ9d_1 != kQgRr5e_0.QxJ9d_1 || this.PGPF6hQ_2 != kQgRr5e_0.PGPF6hQ_2) {
                }
            }
            return true;
        }
        return false;
    }

    public int hashCode() {
        if (isEmpty()) {
            return -1;
        }
        return (((this.f7KQgRr5e_0 * 31) + this.QxJ9d_1) * 31) + this.PGPF6hQ_2;
    }

    public boolean isEmpty() {
        if (this.PGPF6hQ_2 > 0) {
            if (this.f7KQgRr5e_0 > this.QxJ9d_1) {
                return true;
            }
        } else if (this.f7KQgRr5e_0 < this.QxJ9d_1) {
            return true;
        }
        return false;
    }

    public String toString() {
        StringBuilder sb;
        int i;
        if (this.PGPF6hQ_2 > 0) {
            sb = new StringBuilder();
            sb.append(this.f7KQgRr5e_0);
            sb.append("..");
            sb.append(this.QxJ9d_1);
            sb.append(" step ");
            i = this.PGPF6hQ_2;
        } else {
            sb = new StringBuilder();
            sb.append(this.f7KQgRr5e_0);
            sb.append(" downTo ");
            sb.append(this.QxJ9d_1);
            sb.append(" step ");
            i = -this.PGPF6hQ_2;
        }
        sb.append(i);
        return sb.toString();
    }

    @Override // java.lang.Iterable
    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public JZJr_16 iterator() {
        return new QxJ9d_1(this.f7KQgRr5e_0, this.QxJ9d_1, this.PGPF6hQ_2);
    }
}
