125 lines
6.8 KiB
Java
125 lines
6.8 KiB
Java
package kotlin.ranges;
|
|
|
|
import kotlin.Deprecated;
|
|
import kotlin.ExperimentalStdlibApi;
|
|
import kotlin.ExperimentalUnsignedTypes;
|
|
import kotlin.Metadata;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.ULong;
|
|
import kotlin.WasExperimental;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
@SinceKotlin(version = "1.5")
|
|
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0007\u0018\u0000 \u001c2\u00020\u00012\b\u0012\u0004\u0012\u00020\u00030\u00022\b\u0012\u0004\u0012\u00020\u00030\u0004:\u0001\u001cB\u0015\u0012\u0006\u0010\u0005\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0003¢\u0006\u0002\u0010\u0007J\u0018\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0003H\u0096\u0002¢\u0006\u0004\b\u0012\u0010\u0013J\u0013\u0010\u0014\u001a\u00020\u00102\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0096\u0002J\b\u0010\u0017\u001a\u00020\u0018H\u0016J\b\u0010\u0019\u001a\u00020\u0010H\u0016J\b\u0010\u001a\u001a\u00020\u001bH\u0016R\u001d\u0010\b\u001a\u00020\u00038VX\u0097\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR\u0017\u0010\u0006\u001a\u00020\u00038VX\u0096\u0004ø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\r\u0010\fR\u0017\u0010\u0005\u001a\u00020\u00038VX\u0096\u0004ø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\u000e\u0010\f\u0082\u0002\u0004\n\u0002\b!¨\u0006\u001d"}, d2 = {"Lkotlin/ranges/ULongRange;", "Lkotlin/ranges/ULongProgression;", "Lkotlin/ranges/ClosedRange;", "Lkotlin/ULong;", "Lkotlin/ranges/OpenEndRange;", "start", "endInclusive", "(JJLkotlin/jvm/internal/DefaultConstructorMarker;)V", "endExclusive", "getEndExclusive-s-VKNKU$annotations", "()V", "getEndExclusive-s-VKNKU", "()J", "getEndInclusive-s-VKNKU", "getStart-s-VKNKU", "contains", "", "value", "contains-VKZWuLQ", "(J)Z", "equals", "other", "", "hashCode", "", "isEmpty", "toString", "", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
|
/* loaded from: classes3.dex */
|
|
public final class ULongRange extends ULongProgression implements ClosedRange<ULong>, OpenEndRange<ULong> {
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
private static final ULongRange EMPTY = new ULongRange(-1, 0, null);
|
|
|
|
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/ranges/ULongRange$Companion;", "", "()V", "EMPTY", "Lkotlin/ranges/ULongRange;", "getEMPTY", "()Lkotlin/ranges/ULongRange;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final ULongRange getEMPTY() {
|
|
return ULongRange.EMPTY;
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ ULongRange(long j4, long j5, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(j4, j5);
|
|
}
|
|
|
|
@Deprecated(message = "Can throw an exception when it's impossible to represent the value with ULong type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
|
@SinceKotlin(version = "1.9")
|
|
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
|
/* renamed from: getEndExclusive-s-VKNKU$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1351getEndExclusivesVKNKU$annotations() {
|
|
}
|
|
|
|
@Override // kotlin.ranges.ClosedRange, kotlin.ranges.OpenEndRange
|
|
public /* bridge */ /* synthetic */ boolean contains(Comparable comparable) {
|
|
return m1352containsVKZWuLQ(((ULong) comparable).getData());
|
|
}
|
|
|
|
/* renamed from: contains-VKZWuLQ, reason: not valid java name */
|
|
public boolean m1352containsVKZWuLQ(long value) {
|
|
return Long.compareUnsigned(getFirst(), value) <= 0 && Long.compareUnsigned(value, getLast()) <= 0;
|
|
}
|
|
|
|
@Override // kotlin.ranges.ULongProgression
|
|
public boolean equals(Object other) {
|
|
if (!(other instanceof ULongRange)) {
|
|
return false;
|
|
}
|
|
if (isEmpty() && ((ULongRange) other).isEmpty()) {
|
|
return true;
|
|
}
|
|
ULongRange uLongRange = (ULongRange) other;
|
|
return getFirst() == uLongRange.getFirst() && getLast() == uLongRange.getLast();
|
|
}
|
|
|
|
@Override // kotlin.ranges.OpenEndRange
|
|
public /* bridge */ /* synthetic */ ULong getEndExclusive() {
|
|
return ULong.m284boximpl(m1353getEndExclusivesVKNKU());
|
|
}
|
|
|
|
/* renamed from: getEndExclusive-s-VKNKU, reason: not valid java name */
|
|
public long m1353getEndExclusivesVKNKU() {
|
|
if (getLast() == -1) {
|
|
throw new IllegalStateException("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.");
|
|
}
|
|
return ULong.m290constructorimpl(ULong.m290constructorimpl(1 & 4294967295L) + getLast());
|
|
}
|
|
|
|
@Override // kotlin.ranges.ClosedRange
|
|
public /* bridge */ /* synthetic */ ULong getEndInclusive() {
|
|
return ULong.m284boximpl(m1354getEndInclusivesVKNKU());
|
|
}
|
|
|
|
/* renamed from: getEndInclusive-s-VKNKU, reason: not valid java name */
|
|
public long m1354getEndInclusivesVKNKU() {
|
|
return getLast();
|
|
}
|
|
|
|
@Override // kotlin.ranges.ClosedRange, kotlin.ranges.OpenEndRange
|
|
public /* bridge */ /* synthetic */ Comparable getStart() {
|
|
return ULong.m284boximpl(m1355getStartsVKNKU());
|
|
}
|
|
|
|
/* renamed from: getStart-s-VKNKU, reason: not valid java name */
|
|
public long m1355getStartsVKNKU() {
|
|
return getFirst();
|
|
}
|
|
|
|
@Override // kotlin.ranges.ULongProgression
|
|
public int hashCode() {
|
|
if (isEmpty()) {
|
|
return -1;
|
|
}
|
|
return (((int) ULong.m290constructorimpl(getFirst() ^ ULong.m290constructorimpl(getFirst() >>> 32))) * 31) + ((int) ULong.m290constructorimpl(getLast() ^ ULong.m290constructorimpl(getLast() >>> 32)));
|
|
}
|
|
|
|
@Override // kotlin.ranges.ULongProgression, kotlin.ranges.ClosedRange, kotlin.ranges.OpenEndRange
|
|
public boolean isEmpty() {
|
|
return Long.compareUnsigned(getFirst(), getLast()) > 0;
|
|
}
|
|
|
|
@Override // kotlin.ranges.ULongProgression
|
|
public String toString() {
|
|
return ((Object) ULong.m336toStringimpl(getFirst())) + ".." + ((Object) ULong.m336toStringimpl(getLast()));
|
|
}
|
|
|
|
private ULongRange(long j4, long j5) {
|
|
super(j4, j5, 1L, null);
|
|
}
|
|
}
|