com.r3corda.contracts.asset / kotlin.collections.Iterable / sumCashOrZero

sumCashOrZero

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

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