discord-jadx/app/src/main/java/d0/d0/d.java

43 lines
984 B
Java

package d0.d0;
import d0.t.d0;
import java.util.NoSuchElementException;
/* compiled from: ProgressionIterators.kt */
public final class d extends d0 {
public final long i;
public boolean j;
public long k;
public final long l;
public d(long j, long j2, long j3) {
this.l = j3;
this.i = j2;
boolean z2 = true;
int i = (j3 > 0 ? 1 : (j3 == 0 ? 0 : -1));
int i2 = (j > j2 ? 1 : (j == j2 ? 0 : -1));
if (i <= 0 ? i2 < 0 : i2 > 0) {
z2 = false;
}
this.j = z2;
this.k = !z2 ? j2 : j;
}
@Override // java.util.Iterator
public boolean hasNext() {
return this.j;
}
@Override // d0.t.d0
public long nextLong() {
long j = this.k;
if (j != this.i) {
this.k = this.l + j;
} else if (this.j) {
this.j = false;
} else {
throw new NoSuchElementException();
}
return j;
}
}