corda / net.corda.core.transactions / LedgerTransaction / referenceInputRefsOfType

referenceInputRefsOfType

fun <T : ContractState> referenceInputRefsOfType(clazz: Class<T>): List<StateAndRef<T>>

Helper to simplify getting all reference input states of a particular class, interface, or base class.

Parameters

clazz - The class type used for filtering via an Class.isInstance check. clazz must be an extension of ContractState.

Return
the possibly empty list of reference inputs StateAndRef matching the clazz restriction.

fun <reified T : ContractState> referenceInputRefsOfType(): List<StateAndRef<T>>