Interface MutableDurationTokenSequence

    • Method Detail

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