Interface MutableCharTokenSequence

All Superinterfaces:
CharSequence, CharTokenSequence, MutableScalarTokenSequence, MutableTokenSequence, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
CharTokenList, SparseCharTokenList

public interface MutableCharTokenSequence extends CharTokenSequence, MutableScalarTokenSequence
A MutableTokenSequence containing character valued data.
See Also:
  • TokenTypeConstant#CHAR
  • Method Details

    • append

      void append(char value)
      Appends the specified character to this sequence.
      Parameters:
      value - the value to append.
    • append

      void append(char value, int count)
      Appends the specified character to this sequence multiple times.
      Parameters:
      value - the value to append.
      count - the number of copies to append.
    • appendChars

      void appendChars(CharSequence seq)
      Appends the specified character sequence to this sequence.
      Parameters:
      seq - the character sequence to append.
    • appendChars

      void appendChars(CharSequence seq, int start, int length)
      Appends a subsequence of the specified character sequence to this sequence.
      Parameters:
      seq - the character sequence to append.
      start - the index of the initial character in the subsequence
      length - the length of the subsequence
    • setChar

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

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