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

sumObligationsOrZero

fun <P> Iterable<ContractState>.sumObligationsOrZero(issuanceDef: Issued<Terms<P>>): Amount<Issued<Terms<P>>>

Sums the obligation states in the list, returning zero of the given product if there are none.