BaseTransaction.outRefsOfType - corda

corda / net.corda.core.transactions / BaseTransaction / outRefsOfType

# outRefsOfType

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

Helper to simplify getting all output StateAndRef items of a particular state 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 output StateAndRef states matching the clazz restriction.

`fun <reified T : ContractState> outRefsOfType(): List<StateAndRef<T>>`