Package adalid.core

Class TemporalAddend

    • Method Detail

      • temporalAddendValueOf

        public static TemporalAddend temporalAddendValueOf​(String string,
                                                           char[] validUnits,
                                                           char defaultUnit)
      • temporalAddendValueOf

        public static TemporalAddend temporalAddendValueOf​(String string,
                                                           char[] validUnits,
                                                           char defaultUnit,
                                                           String min,
                                                           String max)
      • getQuantity

        public long getQuantity()
        Returns:
        the number
      • getUnitCode

        public char getUnitCode()
        Returns:
        the unit code
      • getUnitName

        public String getUnitName()
        Returns:
        the unit name
      • getMinValue

        public TemporalAddend getMinValue()
        Returns:
        the minimum value
      • getMaxValue

        public TemporalAddend getMaxValue()
        Returns:
        the maximum value
      • isBadValue

        public boolean isBadValue()
        Returns:
        the bad value (out of range) indicator
      • toSeconds

        public long toSeconds()
      • toMinutes

        public long toMinutes()
      • toHours

        public long toHours()
      • toDays

        public long toDays()
      • toMonths

        public long toMonths()
      • toYears

        public long toYears()