public static class CommercialPaper.State implements OwnableState, QueryableState
Constructor and Description |
---|
State(PartyAndReference issuance,
AbstractParty owner,
Amount<net.corda.core.contracts.Issued> faceValue,
java.time.Instant maturityDate) |
Modifier and Type | Method and Description |
---|---|
PartyAndReference |
component1() |
AbstractParty |
component2()
There must be a MoveCommand signed by this key to claim the amount.
|
Amount<net.corda.core.contracts.Issued> |
component3() |
java.time.Instant |
component4() |
CommercialPaper.State |
copy(PartyAndReference issuance,
AbstractParty owner,
Amount<net.corda.core.contracts.Issued> faceValue,
java.time.Instant maturityDate) |
boolean |
equals(java.lang.Object p) |
PersistentState |
generateMappedObject(MappedSchema schema)
Object Relational Mapping support.
|
Amount<net.corda.core.contracts.Issued> |
getFaceValue() |
PartyAndReference |
getIssuance() |
java.time.Instant |
getMaturityDate() |
AbstractParty |
getOwner()
There must be a MoveCommand signed by this key to claim the amount.
|
NonExistentClass |
getParticipants()
A participant is any party that should be notified when the state is created or consumed.
|
int |
hashCode() |
java.lang.Iterable<net.corda.core.schemas.MappedSchema> |
supportedSchemas()
Object Relational Mapping support.
|
java.lang.String |
toString() |
NonExistentClass |
withFaceValue(Amount<net.corda.core.contracts.Issued> newFaceValue) |
NonExistentClass |
withMaturityDate(java.time.Instant newMaturityDate) |
CommandAndState |
withNewOwner(AbstractParty newOwner)
Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone.
|
NonExistentClass |
withOwner(AbstractParty newOwner) |
CommercialPaper.State |
withoutOwner() |
getOwner, withNewOwner
generateMappedObject, supportedSchemas
getParticipants
public State(PartyAndReference issuance, AbstractParty owner, Amount<net.corda.core.contracts.Issued> faceValue, java.time.Instant maturityDate)
owner
- There must be a MoveCommand signed by this key to claim the amount.public NonExistentClass 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.
public CommandAndState withNewOwner(AbstractParty newOwner)
Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone.
public CommercialPaper.State withoutOwner()
public java.lang.String toString()
public NonExistentClass withOwner(AbstractParty newOwner)
public NonExistentClass withFaceValue(Amount<net.corda.core.contracts.Issued> newFaceValue)
public NonExistentClass withMaturityDate(java.time.Instant newMaturityDate)
public java.lang.Iterable<net.corda.core.schemas.MappedSchema> supportedSchemas()
Object Relational Mapping support.
public PersistentState generateMappedObject(MappedSchema schema)
Object Relational Mapping support.
public PartyAndReference getIssuance()
public AbstractParty getOwner()
There must be a MoveCommand signed by this key to claim the amount.
public Amount<net.corda.core.contracts.Issued> getFaceValue()
public java.time.Instant getMaturityDate()
public PartyAndReference component1()
public AbstractParty component2()
There must be a MoveCommand signed by this key to claim the amount.
public Amount<net.corda.core.contracts.Issued> component3()
public java.time.Instant component4()
public CommercialPaper.State copy(PartyAndReference issuance, AbstractParty owner, Amount<net.corda.core.contracts.Issued> faceValue, java.time.Instant maturityDate)
public int hashCode()
public boolean equals(java.lang.Object p)