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 Detail

      • 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