Interface Range<E extends Comparable<E>,​ME extends Range<E,​ME>>

    • Method Detail

      • getLeftEndpoint

        E getLeftEndpoint()
        Returns:
        The left endpoint of this range where the left <= right
      • getRightEndpoint

        E getRightEndpoint()
        Returns:
        The right endpoint of this range where the left <= right
      • isLeftClosed

        boolean isLeftClosed()
        Returns:
        True if this range includes the left endpoint.
      • isRightClosed

        boolean isRightClosed()
        Returns:
        True if this range includes the right endpoint.
      • contains

        boolean contains​(E elem)
        Parameters:
        elem - An element to test
        Returns:
        True if elem is a proper element in the set of elements defining this range.
      • contains

        boolean contains​(ME range)
        Parameters:
        range - An range to test for containment
        Returns:
        True if range's endpoints are proper elements in the set of elements defining this range.
      • isReversed

        boolean isReversed()
        Returns:
        True if this range iterates from the right by default e.g., if the range is specified in reverse order: 10..1, a reverse range results