operator fun plus(other: Amount<T>): Amount<T>
A checked addition operator is supported to simplify aggregation of Amounts. Mixing non-identical token types will throw IllegalArgumentException.
ArithmeticException
- if there is overflow of Amount tokens during the summation
IllegalArgumentException
- if mixing non-identical token types.