Files
rr3-apk/decompiled/sources/kotlin/ranges/CharProgressionIterator.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

44 lines
1.2 KiB
Java

package kotlin.ranges;
import java.util.NoSuchElementException;
import kotlin.collections.CharIterator;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes5.dex */
public final class CharProgressionIterator extends CharIterator {
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 CharProgressionIterator(char c, char c2, int i) {
this.step = i;
this.finalElement = c2;
boolean z = true;
if (i <= 0 ? Intrinsics.compare((int) c, (int) c2) < 0 : Intrinsics.compare((int) c, (int) c2) > 0) {
z = false;
}
this.hasNext = z;
this.next = z ? c : c2;
}
@Override // kotlin.collections.CharIterator
public char nextChar() {
int i = this.next;
if (i != this.finalElement) {
this.next = this.step + i;
} else {
if (!this.hasNext) {
throw new NoSuchElementException();
}
this.hasNext = false;
}
return (char) i;
}
}