- of
Obtains an instance from an array of CurrencyAmount objects. It is an error for
the input to contain
- plus
Returns a copy of this MultiCurrencyAmount with the specified amount added. This
adds the specified
- empty
Obtains an empty MultiCurrencyAmount.
- getAmount
Gets the CurrencyAmount for the specified currency, throwing an exception if not
found.
- toMultiCurrencyAmount
Returns a collector that can be used to create a multi-currency amount from a
stream of amounts. If
- contains
Checks if this multi-amount contains an amount for the specified currency.
- convertedTo
Converts this amount to an equivalent amount the specified currency. The result
will be expressed in
- getAmounts
Gets the set of currency amounts. Each currency will occur only once, as per a
map keyed by currency
- getCurrencies
Gets the set of stored currencies.
- size
Gets the number of stored amounts.
- negated
Returns a copy of this CurrencyAmount with the amount negated. This takes this
amount and negates it
- stream
Returns a stream over the currency amounts. This provides access to the entire
set of amounts.