Files
rr3-apk/decompiled/sources/kotlin/ranges/LongProgressionIterator.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

43 lines
1.0 KiB
Java

package kotlin.ranges;
import java.util.NoSuchElementException;
import kotlin.collections.LongIterator;
/* loaded from: classes5.dex */
public final class LongProgressionIterator extends LongIterator {
public final long finalElement;
public boolean hasNext;
public long next;
public final long step;
@Override // java.util.Iterator
public boolean hasNext() {
return this.hasNext;
}
public LongProgressionIterator(long j, long j2, long j3) {
this.step = j3;
this.finalElement = j2;
boolean z = true;
if (j3 <= 0 ? j < j2 : j > j2) {
z = false;
}
this.hasNext = z;
this.next = z ? j : j2;
}
@Override // kotlin.collections.LongIterator
public long nextLong() {
long j = this.next;
if (j != this.finalElement) {
this.next = this.step + j;
} else {
if (!this.hasNext) {
throw new NoSuchElementException();
}
this.hasNext = false;
}
return j;
}
}