Interface MutableIntTokenSequence

All Superinterfaces:
DoubleTokenSequence, FloatTokenSequence, IntTokenSequence, LongTokenSequence, MutableScalarTokenSequence, MutableTokenSequence, NumericTokenSequence, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
IntTokenList, SparseIntTokenList

public interface MutableIntTokenSequence extends IntTokenSequence, MutableScalarTokenSequence
A MutableTokenSequence containing integer valued data.
See Also:
  • TokenTypeConstant#INT
  • Method Details

    • append

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

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

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

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