Interface MutablePeriodTokenSequence

All Superinterfaces:
MutableScalarTokenSequence, MutableTokenSequence, PeriodTokenSequence, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
PeriodTokenList, SparsePeriodTokenList

public interface MutablePeriodTokenSequence extends PeriodTokenSequence, MutableScalarTokenSequence
A MutableTokenSequence containing period valued data.
See Also:
  • TokenTypeConstant#PERIOD
  • Method Details

    • 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.
    • getTokenSetter

      PeriodSettable getTokenSetter(int index)
      Description copied from interface: MutableTokenSequence
      Returns a mutator for the given index.
      Specified by:
      getTokenSetter in interface MutableScalarTokenSequence
      Specified by:
      getTokenSetter in interface MutableTokenSequence
      Parameters:
      index - the position
      Returns:
      a mutator for the given index.