Interface IRange<T extends Comparable<? super T>>

Type Parameters:
T - the type of the end points of the range
All Superinterfaces:
IDisplayable
All Known Implementing Classes:
QuantityRange

public interface IRange<T extends Comparable<? super T>> extends IDisplayable
A range of Comparables. The range is finite unless the parameterized type support infinities, like Double does.
  • Method Details

    • getStart

      T getStart()
      Returns:
      the start of the range
    • getEnd

      T getEnd()
      Returns:
      the end of the range
    • getCenter

      T getCenter()
      Returns:
      the center of the range
    • getExtent

      T getExtent()
      Returns:
      the (positive) difference between end and start
    • isPoint

      boolean isPoint()
      Returns:
      true if and only if start.compareTo(end) == 0