what-the-bank/sources/o/C14975gdg.java

89 lines
2.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Iterator;
/* renamed from: o.gdg, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public class C14975gdg implements Iterable<Long>, InterfaceC14932gcO {
private final long a;
public final long b;
public final long e;
public C14975gdg(long j, long j2) {
this.e = j;
this.b = j < j2 ? j2 - gbB.b(j2, j, 1L) : j2;
this.a = 1L;
}
public boolean equals(Object obj) {
if (obj instanceof C14975gdg) {
if (!d() || !((C14975gdg) obj).d()) {
C14975gdg c14975gdg = (C14975gdg) obj;
if (this.e != c14975gdg.e || this.b != c14975gdg.b || this.a != c14975gdg.a) {
}
}
return true;
}
return false;
}
public int hashCode() {
if (d()) {
return -1;
}
long j = this.e;
long j2 = this.b;
long j3 = this.a;
return (int) (((((j ^ (j >>> 32)) * 31) + (j2 ^ (j2 >>> 32))) * 31) + ((j3 >>> 32) ^ j3));
}
public String toString() {
StringBuilder sb;
long j;
if (this.a > 0) {
sb = new StringBuilder();
sb.append(this.e);
sb.append("..");
sb.append(this.b);
sb.append(" step ");
j = this.a;
} else {
sb = new StringBuilder();
sb.append(this.e);
sb.append(" downTo ");
sb.append(this.b);
sb.append(" step ");
j = -this.a;
}
sb.append(j);
return sb.toString();
}
/* renamed from: o.gdg$HBt */
/* loaded from: classes6.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
@Override // java.lang.Iterable
public /* synthetic */ Iterator<Long> iterator() {
return new C14974gdf(this.e, this.b, this.a);
}
public boolean d() {
long j = this.a;
long j2 = this.e;
long j3 = this.b;
return j <= 0 ? j2 < j3 : j2 > j3;
}
static {
new HBt((byte) 0);
}
}