public static class JavaCommercialPaper.State extends java.lang.Object implements net.corda.core.contracts.OwnableState, ICommercialPaperState
| Constructor and Description |
|---|
State() |
State(net.corda.core.contracts.PartyAndReference issuance,
net.corda.core.identity.AbstractParty owner,
net.corda.core.contracts.Amount<net.corda.core.contracts.Issued<java.util.Currency>> faceValue,
java.time.Instant maturityDate) |
| Modifier and Type | Method and Description |
|---|---|
JavaCommercialPaper.State |
copy() |
boolean |
equals(java.lang.Object o) |
net.corda.core.contracts.Contract |
getContract() |
net.corda.core.contracts.Amount<net.corda.core.contracts.Issued<java.util.Currency>> |
getFaceValue() |
net.corda.core.contracts.PartyAndReference |
getIssuance() |
java.time.Instant |
getMaturityDate() |
net.corda.core.identity.AbstractParty |
getOwner() |
java.util.List<net.corda.core.identity.AbstractParty> |
getParticipants() |
int |
hashCode() |
ICommercialPaperState |
withFaceValue(net.corda.core.contracts.Amount<net.corda.core.contracts.Issued<java.util.Currency>> newFaceValue) |
ICommercialPaperState |
withMaturityDate(java.time.Instant newMaturityDate) |
kotlin.Pair<net.corda.core.contracts.CommandData,net.corda.core.contracts.OwnableState> |
withNewOwner(net.corda.core.identity.AbstractParty newOwner) |
JavaCommercialPaper.State |
withoutOwner() |
ICommercialPaperState |
withOwner(net.corda.core.identity.AbstractParty newOwner) |
public State()
public State(net.corda.core.contracts.PartyAndReference issuance,
net.corda.core.identity.AbstractParty owner,
net.corda.core.contracts.Amount<net.corda.core.contracts.Issued<java.util.Currency>> faceValue,
java.time.Instant maturityDate)
public JavaCommercialPaper.State copy()
public ICommercialPaperState withOwner(net.corda.core.identity.AbstractParty newOwner)
withOwner in interface ICommercialPaperState@NotNull
public kotlin.Pair<net.corda.core.contracts.CommandData,net.corda.core.contracts.OwnableState> withNewOwner(@NotNull
net.corda.core.identity.AbstractParty newOwner)
withNewOwner in interface net.corda.core.contracts.OwnableStatepublic ICommercialPaperState withFaceValue(net.corda.core.contracts.Amount<net.corda.core.contracts.Issued<java.util.Currency>> newFaceValue)
withFaceValue in interface ICommercialPaperStatepublic ICommercialPaperState withMaturityDate(java.time.Instant newMaturityDate)
withMaturityDate in interface ICommercialPaperStatepublic net.corda.core.contracts.PartyAndReference getIssuance()
@NotNull public net.corda.core.identity.AbstractParty getOwner()
getOwner in interface net.corda.core.contracts.OwnableStatepublic net.corda.core.contracts.Amount<net.corda.core.contracts.Issued<java.util.Currency>> getFaceValue()
public java.time.Instant getMaturityDate()
@NotNull public net.corda.core.contracts.Contract getContract()
getContract in interface net.corda.core.contracts.ContractStatepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic JavaCommercialPaper.State withoutOwner()
@NotNull public java.util.List<net.corda.core.identity.AbstractParty> getParticipants()
getParticipants in interface net.corda.core.contracts.ContractState