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

49 lines
1.4 KiB
Java

package kotlin.ranges;
import kotlin.collections.CharIterator;
import kotlin.internal.ProgressionUtilKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.markers.KMappedMarker;
/* loaded from: classes5.dex */
public abstract class CharProgression implements Iterable, KMappedMarker {
public static final Companion Companion = new Companion(null);
public final char first;
public final char last;
public final int step;
public final char getFirst() {
return this.first;
}
public final char getLast() {
return this.last;
}
public CharProgression(char c, char c2, int i) {
if (i == 0) {
throw new IllegalArgumentException("Step must be non-zero.");
}
if (i == Integer.MIN_VALUE) {
throw new IllegalArgumentException("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");
}
this.first = c;
this.last = (char) ProgressionUtilKt.getProgressionLastElement((int) c, (int) c2, i);
this.step = i;
}
@Override // java.lang.Iterable
public CharIterator iterator() {
return new CharProgressionIterator(this.first, this.last, this.step);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public Companion() {
}
}
}