Class AbstractRange<N>

    • Constructor Detail

      • AbstractRange

        public AbstractRange()
    • Method Detail

      • intersects

        public boolean intersects​(Range<N> other)
        Description copied from interface: Range
        Check if the given range intersects the current range.
        Specified by:
        intersects in interface Range<N>
        Parameters:
        other - the range to check against the current range
        Returns:
        true if both ranges intersect and false otherwise
      • compare

        protected abstract int compare​(N left,
                                       N right)
      • contains

        public boolean contains​(N value)
        Description copied from interface: Range
        Check if a given value is contained within this range
        Specified by:
        contains in interface Range<N>
        Parameters:
        value - the value to check
        Returns:
        true if the value is contained by this range and false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object