QueryCriteria.VaultQueryCriteria.withContractStateTypes - corda

corda / net.corda.core.node.services.vault / QueryCriteria / VaultQueryCriteria / withContractStateTypes

# withContractStateTypes

`fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): VaultQueryCriteria`

This function copies the existing VaultQueryCriteria object and sets the given value for contractStateTypes. You can use more than one of the functions in this group together. In case you are also using a function that creates a new VaultQueryCriteria object, make sure that you are calling that method first.