Interface MutablePeriodTokenSequence

    • Method Detail

      • append

        void append​(Period value)
        Appends the specified period to this sequence.
        Parameters:
        value - the value to append. If null, this is equivalent to appendNull().
      • appendPeriod

        void appendPeriod​(int years,
                          int months,
                          int days)
        Appends the period specified in years, months, and days to this sequence.
        Parameters:
        years - the number of years in the period.
        months - the number of months in the period.
        days - the number of days in the period.
      • append

        void append​(Period value,
                    int count)
        Appends the specified period to this sequence multiple times.
        Parameters:
        value - the value to append. If null, this is equivalent to appendNull().
        count - the number of copies to append.
      • appendPeriod

        void appendPeriod​(int years,
                          int months,
                          int days,
                          int count)
        Appends the period specified in years, months, and days to this sequence multiple times.
        Parameters:
        years - the number of years in the period.
        months - the number of months in the period.
        days - the number of days in the period.
        count - the number of copies to append.
      • set

        void set​(int index,
                 Period value)
        Sets the token at the specified position to the given value.
        Parameters:
        index - the position to modify
        value - the period to which to set the token.
      • setPeriod

        void setPeriod​(int index,
                       int years,
                       int months,
                       int days)
        Sets the token at the specified position to the given value.
        Parameters:
        index - the position to modify
        years - the number of years in the period.
        months - the number of months in the period.
        days - the number of days in the period.