com.r3corda.core.contracts / kotlin.collections.Iterable

### Extensions for kotlin.collections.Iterable

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(): <ERROR CLASS>` Sums the asset states in the list, returning null if there are none.
sumFungibleOrZero | `fun <T> Iterable<ContractState>.sumFungibleOrZero(token: Issued<T>): <ERROR CLASS>` Sums the asset states in the list, returning zero of the given token if there are none.
sumOrNull | `fun <T> Iterable<Amount<T>>.sumOrNull(): Nothing?`
sumOrThrow | `fun <T> Iterable<Amount<T>>.sumOrThrow(): <ERROR CLASS>`
sumOrZero | `fun <T> Iterable<Amount<T>>.sumOrZero(currency: T): Amount<T>`