- 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
49 lines
1.4 KiB
Java
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() {
|
|
}
|
|
}
|
|
}
|