86 lines
2.2 KiB
Java
86 lines
2.2 KiB
Java
package o;
|
|
|
|
import java.util.Iterator;
|
|
|
|
/* renamed from: o.gda, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public class C14969gda implements Iterable<Integer>, InterfaceC14932gcO {
|
|
public static final RVV a = new RVV(0);
|
|
public final int b;
|
|
public final int d;
|
|
public final int e;
|
|
|
|
public C14969gda(int i, int i2, int i3) {
|
|
if (i3 == 0) {
|
|
throw new IllegalArgumentException("Step must be non-zero.");
|
|
}
|
|
if (i3 == Integer.MIN_VALUE) {
|
|
throw new IllegalArgumentException("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");
|
|
}
|
|
this.b = i;
|
|
this.d = gbB.a(i, i2, i3);
|
|
this.e = i3;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (obj instanceof C14969gda) {
|
|
if (!a() || !((C14969gda) obj).a()) {
|
|
C14969gda c14969gda = (C14969gda) obj;
|
|
if (this.b != c14969gda.b || this.d != c14969gda.d || this.e != c14969gda.e) {
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
if (a()) {
|
|
return -1;
|
|
}
|
|
return (((this.b * 31) + this.d) * 31) + this.e;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb;
|
|
int i;
|
|
if (this.e > 0) {
|
|
sb = new StringBuilder();
|
|
sb.append(this.b);
|
|
sb.append("..");
|
|
sb.append(this.d);
|
|
sb.append(" step ");
|
|
i = this.e;
|
|
} else {
|
|
sb = new StringBuilder();
|
|
sb.append(this.b);
|
|
sb.append(" downTo ");
|
|
sb.append(this.d);
|
|
sb.append(" step ");
|
|
i = -this.e;
|
|
}
|
|
sb.append(i);
|
|
return sb.toString();
|
|
}
|
|
|
|
/* renamed from: o.gda$RVV */
|
|
/* loaded from: classes.dex */
|
|
public static final class RVV {
|
|
private RVV() {
|
|
}
|
|
|
|
public /* synthetic */ RVV(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
@Override // java.lang.Iterable
|
|
public /* synthetic */ Iterator<Integer> iterator() {
|
|
return new C14972gdd(this.b, this.d, this.e);
|
|
}
|
|
|
|
public boolean a() {
|
|
return this.e <= 0 ? this.b < this.d : this.b > this.d;
|
|
}
|
|
}
|