OwnableState
Keywords: net.corda.core.contracts.OwnableState interface
Date: 2023-09-18

net.corda.core.contracts

## Interface OwnableState

- All Superinterfaces:
    ContractState
  All Known Subinterfaces:
    FungibleAsset<T>
  All Known Implementing Classes:
    Obligation.State, CommercialPaper.State, Cash.State

      public OwnableState
      extends ContractState

  A contract state that can have a single owner.

- - ### Constructor Detail

    - #### OwnableState

          public OwnableState()

  - ### Method Detail

    - #### getOwner

          @NotNull
          AbstractParty getOwner()

      There must be a MoveCommand signed by this key to claim the amount.

    - #### withNewOwner

          @NotNull
          CommandAndState withNewOwner(@NotNull
                                                AbstractParty newOwner)

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