Class Range


  • public class Range
    extends Object
    A range of quantities. Typically used for time quantities.
    • Constructor Detail

      • Range

        public Range​(IQuantity startTime,
                     IQuantity endTime)
        Parameters:
        startTime - range start
        endTime - range end
    • Method Detail

      • isInside

        public boolean isInside​(IQuantity time)
        Returns:
        true if the time is in the closed interval of this range
      • isBefore

        public boolean isBefore​(IQuantity time)
        Returns:
        true if the time is before the closed interval of this range
      • isAfter

        public boolean isAfter​(IQuantity time)
        Returns:
        true if the time is after the closed interval of this range