corda / net.corda.core.contracts / FungibleAsset / withNewOwnerAndAmount

withNewOwnerAndAmount

abstract fun withNewOwnerAndAmount(newAmount: Amount<Issued<T>>, newOwner: AbstractParty): FungibleAsset<T>

Copies the underlying data structure, replacing the amount and owner fields with the new values and leaving the rest (exitKeys) alone.