public interface Range<T extends java.lang.Comparable<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
getMax() |
T |
getMin() |
static <T extends java.lang.Comparable<T>> |
includes(Range<T> range,
T value)
Returns whether the given range includes the given value, inclusive.
|
static boolean |
isEmpty(Range<?> range)
Returns whether the given range is empty
|
static <T extends java.lang.Comparable<T>> boolean includes(Range<T> range, T value)
static boolean isEmpty(Range<?> range)
T getMax()
T getMin()