corda / net.corda.core.contracts / kotlin.collections.Collection

Extensions for kotlin.collections.Collection

requireSingleCommand fun <T : CommandData> Collection<AuthenticatedObject<CommandData>>.requireSingleCommand(): AuthenticatedObject<T>
fun <C : CommandData> Collection<AuthenticatedObject<CommandData>>.requireSingleCommand(klass: Class<C>): AuthenticatedObject<C>
select fun <T : CommandData> Collection<AuthenticatedObject<CommandData>>.select(signer: CompositeKey? = null, party: Party? = null): List<AuthenticatedObject<T>>

Filters the command list by type, party and public key all at once.

fun <T : CommandData> Collection<AuthenticatedObject<CommandData>>.select(signers: Collection<CompositeKey>?, parties: Collection<Party>?): List<AuthenticatedObject<T>>

Filters the command list by type, parties and public keys all at once.