package defpackage;

import java.util.Iterator;

/* renamed from: ᵰᵾᵜ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C4375 implements Iterable, InterfaceC3996 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final int f16357;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final int f16358;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final int f16359;

    public C4375(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.f16358 = i;
        this.f16357 = ᵳʿˉ.ˑᵱ(i, i2, i3);
        this.f16359 = i3;
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof C4375)) {
            return false;
        }
        if (isEmpty() && ((C4375) obj).isEmpty()) {
            return true;
        }
        C4375 c4375 = (C4375) obj;
        return this.f16358 == c4375.f16358 && this.f16357 == c4375.f16357 && this.f16359 == c4375.f16359;
    }

    public int hashCode() {
        if (isEmpty()) {
            return -1;
        }
        return (((this.f16358 * 31) + this.f16357) * 31) + this.f16359;
    }

    public boolean isEmpty() {
        int i = this.f16357;
        int i2 = this.f16359;
        int i3 = this.f16358;
        return i2 > 0 ? i3 > i : i3 < i;
    }

    @Override // java.lang.Iterable
    public final Iterator iterator() {
        return new C4056(this.f16358, this.f16357, this.f16359);
    }

    public String toString() {
        StringBuilder sb;
        int i = this.f16357;
        int i2 = this.f16359;
        int i3 = this.f16358;
        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();
    }
}
