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

sumObligationsOrZero

fun <P> Iterable<ContractState>.sumObligationsOrZero(product: P): Amount<P>

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