Interface PeriodValued

    • Method Detail

      • asPeriod

        Period asPeriod()
        Gets the contained Period value as a java.time.Period.
        Returns:
        the contained value as a java.time.Period. If null valued, as indicated by TokenValued.isNull(), null is returned.
      • getYears

        int getYears()
        Gets the year portion of the contained period value.
        Returns:
        the year portion of the contained value If null valued, as indicated by TokenValued.isNull(), 0 is returned.
      • getMonths

        int getMonths()
        Gets the month portion of the contained period value. This does not include the year portion.
        Returns:
        the month portion of the contained value If null valued, as indicated by TokenValued.isNull(), 0 is returned.
      • getDays

        int getDays()
        Gets the day portion of the contained period value. This does not include the year or month portion.
        Returns:
        the day portion of the contained value If null valued, as indicated by TokenValued.isNull(), 0 is returned.