| filterStatesOfType |
fun <T : ContractState> Iterable<StateAndRef<ContractState>>.filterStatesOfType(): List<StateAndRef<T>>
Filters a list of StateAndRef objects according to the type of the states |
| sumFungibleOrNull |
fun <T> Iterable<ContractState>.sumFungibleOrNull(): Amount<Issued<T>>?
Sums the asset states in the list, returning null if there are none. |
| sumFungibleOrZero |
fun <T> Iterable<ContractState>.sumFungibleOrZero(token: Issued<T>): Amount<Issued<T>>
Sums the asset states in the list, returning zero of the given token if there are none. |
| sumOrNull |
fun <T> Iterable<Amount<T>>.sumOrNull(): Amount<T>? |
| sumOrThrow |
fun <T> Iterable<Amount<T>>.sumOrThrow(): Amount<T> |
| sumOrZero |
fun <T> Iterable<Amount<T>>.sumOrZero(currency: T): Amount<T> |