package defpackage;

import java.util.Iterator;

/* JADX INFO: renamed from: ᵿʿᵵʙ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C5485 implements Iterable, InterfaceC5238 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final int f20741;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final int f20742;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final int f20743;

    public C5485(int i, int i2, int i3) {
        if (i3 == 0) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Step must be non-zero.");
            throw null;
        }
        if (i3 == Integer.MIN_VALUE) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");
            throw null;
        }
        this.f20741 = i;
        this.f20743 = ˋˀᵧ.ˊᵙᵾᵲ(i, i2, i3);
        this.f20742 = i3;
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof C5485)) {
            return false;
        }
        if (isEmpty() && ((C5485) obj).isEmpty()) {
            return true;
        }
        C5485 c5485 = (C5485) obj;
        return this.f20741 == c5485.f20741 && this.f20743 == c5485.f20743 && this.f20742 == c5485.f20742;
    }

    public int hashCode() {
        if (isEmpty()) {
            return -1;
        }
        return (((this.f20741 * 31) + this.f20743) * 31) + this.f20742;
    }

    public boolean isEmpty() {
        int i = this.f20743;
        int i2 = this.f20742;
        int i3 = this.f20741;
        return i2 > 0 ? i3 > i : i3 < i;
    }

    @Override // java.lang.Iterable
    public final Iterator iterator() {
        return new C4571(this.f20741, this.f20743, this.f20742);
    }

    public String toString() {
        StringBuilder sb;
        int i = this.f20743;
        int i2 = this.f20742;
        int i3 = this.f20741;
        if (i2 > 0) {
            sb = new StringBuilder();
            sb.append(i3);
            sb.append("..");
            sb.append(i);
            sb.append(" step ");
            sb.append(i2);
        } else {
            sb = new StringBuilder();
            sb.append(i3);
            sb.append(" downTo ");
            sb.append(i);
            sb.append(" step ");
            sb.append(-i2);
        }
        return sb.toString();
    }
}
