Files
rr3-apk/decompiled-community/sources/kotlin/ranges/IntRange.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

72 lines
1.9 KiB
Java

package kotlin.ranges;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* loaded from: classes5.dex */
public final class IntRange extends IntProgression implements ClosedRange {
public static final Companion Companion = new Companion(null);
public static final IntRange EMPTY = new IntRange(1, 0);
public IntRange(int i, int i2) {
super(i, i2, 1);
}
@Override // kotlin.ranges.ClosedRange
public Integer getStart() {
return Integer.valueOf(getFirst());
}
@Override // kotlin.ranges.ClosedRange
public Integer getEndInclusive() {
return Integer.valueOf(getLast());
}
public boolean contains(int i) {
return getFirst() <= i && i <= getLast();
}
@Override // kotlin.ranges.IntProgression
public boolean isEmpty() {
return getFirst() > getLast();
}
@Override // kotlin.ranges.IntProgression
public boolean equals(Object obj) {
if (obj instanceof IntRange) {
if (!isEmpty() || !((IntRange) obj).isEmpty()) {
IntRange intRange = (IntRange) obj;
if (getFirst() != intRange.getFirst() || getLast() != intRange.getLast()) {
}
}
return true;
}
return false;
}
@Override // kotlin.ranges.IntProgression
public int hashCode() {
if (isEmpty()) {
return -1;
}
return (getFirst() * 31) + getLast();
}
@Override // kotlin.ranges.IntProgression
public String toString() {
return getFirst() + ".." + getLast();
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public Companion() {
}
public final IntRange getEMPTY() {
return IntRange.EMPTY;
}
}
}