Interface MutableObjectTokenSequence<O>

Type Parameters:
O - the type of Java objects in the sequence
All Superinterfaces:
MutableScalarTokenSequence, MutableTokenSequence, ObjectTokenSequence<O>, ObjectTyped<O>, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
ObjectTokenList, SparseObjectTokenList

public interface MutableObjectTokenSequence<O> extends ObjectTokenSequence<O>, MutableScalarTokenSequence
A MutableTokenSequence containing object valued data.
See Also:
  • TokenTypeConstant#OBJECT(Class)
  • Method Details

    • append

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

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

      void setObject(int index, O value)
      Sets the token at the specified position to the given value.
      Parameters:
      index - the position to modify
      value - the new value
    • getTokenSetter

      ObjectSettable<O> 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.