Interface MutableDurationTokenSequence

All Superinterfaces:
DurationTokenSequence, MutableScalarTokenSequence, MutableTokenSequence, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
DurationTokenList, SparseDurationTokenList

public interface MutableDurationTokenSequence extends DurationTokenSequence, MutableScalarTokenSequence
A MutableTokenSequence containing duration valued data.
See Also:
  • TokenTypeConstant#DURATION
  • Method Details

    • append

      void append(Duration value)
      Appends the specified duration to this sequence.
      Parameters:
      value - the value to append. If null, this is equivalent to appendNull().
    • appendDuration

      void appendDuration(long seconds, int subsecondNanos)
      Appends the duration specified in seconds to this sequence.
      Parameters:
      seconds - the number of seconds in the duration.
      subsecondNanos - the subsecond portion of the duration in nanoseconds.
    • append

      void append(Duration value, int count)
      Appends the specified duration 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.
    • appendDuration

      void appendDuration(long seconds, int subsecondNanos, int count)
      Appends the duration specified in seconds to this sequence multiple times.
      Parameters:
      seconds - the number of seconds in the duration.
      subsecondNanos - the subsecond portion of the duration in nanoseconds.
      count - the number of copies to append.
    • set

      void set(int index, Duration value)
      Sets the token at the specified position to the given value.
      Parameters:
      index - the position to modify.
      value - the duration to which to set the token.
    • setDuration

      void setDuration(int index, long seconds, int subsecondNanos)
      Sets the token at the specified position to the given value.
      Parameters:
      index - the position to modify.
      seconds - the number of seconds in the duration.
      subsecondNanos - the subsecond portion of the duration in nanoseconds.
    • getTokenSetter

      DurationSettable 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.