filter In Refs
fun <T : ContractState> filterInRefs(clazz: Class<T>, predicate: Predicate<T>): List<StateAndRef<T>>
Helper to simplify filtering inputs according to a Predicate.
Return
the possibly empty list of inputs StateAndRef matching the predicate and clazz restrictions.
Parameters
predicate
A filtering function taking a state of type T and returning true if it should be included in the list. The class filtering is applied before the predicate.
clazz
The class type used for filtering via an Class.isInstance check. clazz must be an extension of ContractState.
inline fun <T : ContractState> filterInRefs(crossinline predicate: (T) -> Boolean): List<StateAndRef<T>>