corda / net.corda.finance.contracts.utils / kotlin.collections.Iterable / sumCashOrZero

sumCashOrZero

fun Iterable<ContractState>.sumCashOrZero(currency: Issued<Currency>): Amount<Issued<Currency>>

Sums the cash states in the list, returning zero of the given currency+issuer if there are none.