- 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
44 lines
1.2 KiB
Java
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;
|
|
}
|
|
}
|