LedgerTransaction.inRefsOfType - corda

corda / net.corda.core.transactions / LedgerTransaction / inRefsOfType

# inRefsOfType

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

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

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