Interface MutableNumericTokenSequence

All Superinterfaces:
MutableScalarTokenSequence, MutableTokenSequence, NumericTokenSequence, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
NumericTokenList, SparseNumericTokenList

public interface MutableNumericTokenSequence extends NumericTokenSequence, MutableScalarTokenSequence
A MutableTokenSequence containing numeric valued data.
See Also:
  • TokenTypeConstant#NUMERIC
  • Method Details

    • appendLong

      void appendLong(long value)
      Appends the specified long to this sequence.
      Parameters:
      value - the value to append.
    • appendDouble

      void appendDouble(double value)
      Appends the specified double to this sequence.
      Parameters:
      value - the value to append. If Double.NaN, this is equivalent to appendNull().
    • append

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

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

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

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