Interface Range<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean after​(Range<T> range)
      Returns true if the lowest value in this range occurs after the greatest value in range.
      boolean after​(T value)
      Returns true if this range occurs after value.
      boolean before​(Range<T> range)
      Returns true if the greatest value in this range occurs before the lowest value in range.
      boolean before​(T value)
      Returns true if this range occurs before value.
      T end()
      Returns the ending value of this range.
      boolean includes​(Range<T> range)
      Returns true if this range includes range.
      boolean includes​(T value)
      Returns true if value occurs within this range.
      boolean isPoint()
      Returns true if the starting and ending values are equal.
      boolean overlaps​(Range<T> range)
      Returns true if this range overlaps range.
      T start()
      Returns the starting value of this range.
    • Method Detail

      • after

        boolean after​(Range<T> range)
        Returns true if the lowest value in this range occurs after the greatest value in range.
        Parameters:
        range - The range to test
        Returns:
        true if the lowest value in this range occurs after the greatest value in range
      • after

        boolean after​(T value)
        Returns true if this range occurs after value.
        Parameters:
        value - The value to test
        Returns:
        true if this range occurs after value
      • before

        boolean before​(Range<T> range)
        Returns true if the greatest value in this range occurs before the lowest value in range.
        Parameters:
        range - The range to test
        Returns:
        true if the greatest value in this range occurs before the lowest value in range
      • before

        boolean before​(T value)
        Returns true if this range occurs before value.
        Parameters:
        value - The value to test
        Returns:
        true if this range occurs before value
      • end

        T end()
        Returns the ending value of this range.
        Returns:
        Ending value
      • includes

        boolean includes​(Range<T> range)
        Returns true if this range includes range.
        Parameters:
        range - The range to test
        Returns:
        true if this range includes range
      • includes

        boolean includes​(T value)
        Returns true if value occurs within this range.
        Parameters:
        value - The value to test
        Returns:
        true if value occurs within this range
      • isPoint

        boolean isPoint()
        Returns true if the starting and ending values are equal.
        Returns:
        true if the starting and ending values are equal
      • overlaps

        boolean overlaps​(Range<T> range)
        Returns true if this range overlaps range.
        Parameters:
        range - The range to test
        Returns:
        true if this range overlaps range
      • start

        T start()
        Returns the starting value of this range.
        Returns:
        Starting value