mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
33 lines
1.9 KiB
Java
33 lines
1.9 KiB
Java
package kotlin.ranges;
|
|
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import java.lang.Comparable;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Range.kt */
|
|
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000f\n\u0002\u0010\u0000\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0004\bf\u0018\u0000*\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00020\u0003J\u0016\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\fJ\b\u0010\r\u001a\u00020\nH\u0016R\u0012\u0010\u0004\u001a\u00028\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0012\u0010\u0007\u001a\u00028\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\u0006¨\u0006\u000e"}, d2 = {"Lkotlin/ranges/ClosedRange;", ExifInterface.GPS_DIRECTION_TRUE, "", "", "endInclusive", "getEndInclusive", "()Ljava/lang/Comparable;", "start", "getStart", "contains", "", "value", "(Ljava/lang/Comparable;)Z", "isEmpty", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public interface ClosedRange<T extends Comparable<? super T>> {
|
|
boolean contains(T value);
|
|
|
|
T getEndInclusive();
|
|
|
|
T getStart();
|
|
|
|
boolean isEmpty();
|
|
|
|
/* compiled from: Range.kt */
|
|
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public static final class DefaultImpls {
|
|
public static <T extends Comparable<? super T>> boolean contains(ClosedRange<T> closedRange, T value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
return value.compareTo(closedRange.getStart()) >= 0 && value.compareTo(closedRange.getEndInclusive()) <= 0;
|
|
}
|
|
|
|
public static <T extends Comparable<? super T>> boolean isEmpty(ClosedRange<T> closedRange) {
|
|
return closedRange.getStart().compareTo(closedRange.getEndInclusive()) > 0;
|
|
}
|
|
}
|
|
}
|