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

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;
}
}
}