AmountTransfer.plus - corda

corda / net.corda.core.contracts / AmountTransfer / plus

# plus

`operator fun plus(other: AmountTransfer<T, P>): AmountTransfer<T, P>`

Add together two AmountTransfer objects to produce the single equivalent net flow. The addition only applies to AmountTransfer objects with the same token type. Also the pair of parties must be aligned, although source destination may be swapped in the second item.

### Exceptions

`ArithmeticException` - if there is underflow, or overflow in the summations.