- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
22 lines
683 B
Java
22 lines
683 B
Java
package kotlin.ranges;
|
|
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface ClosedRange {
|
|
Comparable getEndInclusive();
|
|
|
|
Comparable getStart();
|
|
|
|
public static final class DefaultImpls {
|
|
public static boolean contains(ClosedRange closedRange, Comparable value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
return value.compareTo(closedRange.getStart()) >= 0 && value.compareTo(closedRange.getEndInclusive()) <= 0;
|
|
}
|
|
|
|
public static boolean isEmpty(ClosedRange closedRange) {
|
|
return closedRange.getStart().compareTo(closedRange.getEndInclusive()) > 0;
|
|
}
|
|
}
|
|
}
|