plus

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.

Throws

if there is overflow of Amount tokens during the summation

if mixing non-identical token types.