BaseTransaction.outputsOfType - corda

corda / net.corda.core.transactions / BaseTransaction / outputsOfType

# outputsOfType

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

Helper to simplify getting all output 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 output states matching the clazz restriction.

`fun <reified T : ContractState> outputsOfType(): List<T>`