public static class CommercialPaper.State implements OwnableState, QueryableState
public State(@NotNull
PartyAndReference issuance,
@NotNull
AbstractParty owner,
@NotNull
Amount<net.corda.core.contracts.Issued> faceValue,
@NotNull
java.time.Instant maturityDate)
owner - There must be a MoveCommand signed by this key to claim the amount.@NotNull public java.util.List<net.corda.core.identity.AbstractParty> getParticipants()
A participant is any party that should be notified when the state is created or consumed.
The list of participants is required for certain types of transactions. For example, when changing the notary for this state, every participant has to be involved and approve the transaction so that they receive the updated state, and don't end up in a situation where they can no longer use a state they possess, since someone consumed that state during the notary change process.
The participants list should normally be derived from the contents of the state.
@NotNull public CommandAndState withNewOwner(@NotNull AbstractParty newOwner)
Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone.
@NotNull public net.corda.finance.contracts.CommercialPaper.State withoutOwner()
@NotNull public java.lang.String toString()
@NotNull
public net.corda.finance.contracts.ICommercialPaperState withOwner(@NotNull
AbstractParty newOwner)
@NotNull
public net.corda.finance.contracts.ICommercialPaperState withFaceValue(@NotNull
Amount<net.corda.core.contracts.Issued> newFaceValue)
@NotNull
public net.corda.finance.contracts.ICommercialPaperState withMaturityDate(@NotNull
java.time.Instant newMaturityDate)
@NotNull public java.lang.Iterable<net.corda.core.schemas.MappedSchema> supportedSchemas()
Object Relational Mapping support.
@NotNull public PersistentState generateMappedObject(@NotNull MappedSchema schema)
Object Relational Mapping support.
@NotNull public PartyAndReference getIssuance()
@NotNull public AbstractParty getOwner()
There must be a MoveCommand signed by this key to claim the amount.
@NotNull public Amount<net.corda.core.contracts.Issued> getFaceValue()
@NotNull public java.time.Instant getMaturityDate()
@NotNull public PartyAndReference component1()
@NotNull public AbstractParty component2()
There must be a MoveCommand signed by this key to claim the amount.
@NotNull public Amount<net.corda.core.contracts.Issued> component3()
@NotNull public java.time.Instant component4()
@NotNull
public net.corda.finance.contracts.CommercialPaper.State copy(@NotNull
PartyAndReference issuance,
@NotNull
AbstractParty owner,
@NotNull
Amount<net.corda.core.contracts.Issued> faceValue,
@NotNull
java.time.Instant maturityDate)
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)