Class Bound<T extends Comparable<T>>

    • Constructor Detail

      • Bound

        public Bound()
    • Method Detail

      • lt

        public abstract Bound<T> lt​(T value)
        Restricts this bound such that it includes only values that are less than the given value.
      • eq

        public abstract Bound<T> eq​(T value)
        Restricts this bound such that it includes only the given value.
      • gt

        public abstract Bound<T> gt​(T value)
        Restricts this bound such that it includes only values that are greater than the given value.
      • includes

        public abstract boolean includes​(T value)
        Checks if this bound includes the given value.
      • canBeRestrictedBy

        public abstract boolean canBeRestrictedBy​(T value)
        Checks if this bound can be restricted by the given value.
      • overlaps

        public abstract boolean overlaps​(T begin,
                                         T end)
        Checks if this bound overlaps with the given range. Begin and end are inclusive.