- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
43 lines
1.0 KiB
Java
43 lines
1.0 KiB
Java
package kotlin.ranges;
|
|
|
|
import java.util.NoSuchElementException;
|
|
import kotlin.collections.IntIterator;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class IntProgressionIterator extends IntIterator {
|
|
public final int finalElement;
|
|
public boolean hasNext;
|
|
public int next;
|
|
public final int step;
|
|
|
|
@Override // java.util.Iterator
|
|
public boolean hasNext() {
|
|
return this.hasNext;
|
|
}
|
|
|
|
public IntProgressionIterator(int i, int i2, int i3) {
|
|
this.step = i3;
|
|
this.finalElement = i2;
|
|
boolean z = true;
|
|
if (i3 <= 0 ? i < i2 : i > i2) {
|
|
z = false;
|
|
}
|
|
this.hasNext = z;
|
|
this.next = z ? i : i2;
|
|
}
|
|
|
|
@Override // kotlin.collections.IntIterator
|
|
public int nextInt() {
|
|
int i = this.next;
|
|
if (i != this.finalElement) {
|
|
this.next = this.step + i;
|
|
} else {
|
|
if (!this.hasNext) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
this.hasNext = false;
|
|
}
|
|
return i;
|
|
}
|
|
}
|