Amount.times - corda

corda / net.corda.core.contracts / Amount / times

# times

`operator fun times(other: Long): Amount<T>`
`operator fun times(other: Int): Amount<T>`

The multiplication operator is supported to allow easy calculation for multiples of a primitive Amount. Note this is not a conserving operation, so it may not always be correct modelling of proper token behaviour. N.B. Division is not supported as fractional tokens are not representable by an Amount.

### Exceptions

`ArithmeticException` - if there is overflow of Amount tokens during the multiplication.