Package adalid.core

Class TemporalAddend

java.lang.Object
adalid.core.TemporalAddend
All Implemented Interfaces:
Comparable

public class TemporalAddend extends Object implements Comparable
Author:
Jorge Campins
  • Field Details

  • Method Details

    • temporalAddendValueOf

      public static TemporalAddend temporalAddendValueOf(String string)
    • 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)
    • temporalAddendValueOf

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

      public int getQuantity()
      Returns:
      the number
    • getUnitCode

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

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

      public String getLocalizedUnitName()
      Returns:
      the localized 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()
    • compareTo

      public int compareTo(Object object)
      Specified by:
      compareTo in interface Comparable
    • toString

      public String toString()
      Overrides:
      toString in class Object