corda / net.corda.core.contracts / Amount / plus

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.

Exceptions

ArithmeticException - if there is overflow of Amount tokens during the summation

IllegalArgumentException - if mixing non-identical token types.