Interface Range<T extends Comparable<T>>

    • Method Detail

      • includes

        static <T extends Comparable<T>> boolean includes​(Range<T> range,
                                                          T value)
        Returns whether the given range includes the given value, inclusive. If the range is null or both min and max are null, the result is true, as it is considered as unrestricted. If the range has only min / max, it is assumed the missing part is unrestricted. If the value is null, returns false;
      • isEmpty

        static boolean isEmpty​(Range<?> range)
        Returns whether the given range is empty
      • getMax

        T getMax()
      • getMin

        T getMin()