fun <T : ContractState> outputsOfType(clazz: Class<T>): List<T>
Helper to simplify getting all output states of a particular class, interface, or base class.
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>