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

41 lines
873 B
Java

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