corda / net.corda.finance.contracts.asset / Cash / State / withNewOwner

withNewOwner

fun withNewOwner(newOwner: AbstractParty): CommandAndState

Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone.