Package net.corda.core.contracts
Interface OwnableState
-
- All Implemented Interfaces:
-
net.corda.core.contracts.ContractState
public interface OwnableState implements ContractState
A contract state that can have a single owner.
-
-
Method Summary
Modifier and Type Method Description abstract CommandAndState
withNewOwner(AbstractParty newOwner)
Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone. abstract AbstractParty
getOwner()
There must be a MoveCommand signed by this key to claim the amount. -
-
Method Detail
-
withNewOwner
abstract CommandAndState withNewOwner(AbstractParty newOwner)
Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone.
-
getOwner
abstract AbstractParty getOwner()
There must be a MoveCommand signed by this key to claim the amount.
-
-
-
-