Interface MutableMoneyTokenSequence

All Superinterfaces:
DoubleTokenSequence, FloatTokenSequence, MoneyTokenSequence, MutableScalarTokenSequence, MutableTokenSequence, NumericTokenSequence, ScalarTokenAppendable, ScalarTokenSequence, ScalarTyped, TokenAppendable, TokenSequence, TokenTyped
All Known Implementing Classes:
MoneyTokenList, SparseMoneyTokenList

public interface MutableMoneyTokenSequence extends MoneyTokenSequence, MutableScalarTokenSequence
A MutableTokenSequence containing money valued data.
See Also:
  • TokenTypeConstant#MONEY
  • Method Details

    • append

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

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

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

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