public static class Info.Contract implements Cordapp.Info
A contract CorDapp contains contract definitions (state, commands) and verification logic
Info.Contract, Info.ContractAndWorkflow, Info.Default, Info.Workflow
Constructor and Description |
---|
Contract(java.lang.String shortName,
java.lang.String vendor,
int versionId,
java.lang.String licence)
A contract CorDapp contains contract definitions (state, commands) and verification logic
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
Cordapp
|
java.lang.String |
component2()
Cordapp
|
int |
component3()
integer version of the CorDapp.
|
java.lang.String |
component4() |
Info.Contract |
copy(java.lang.String shortName,
java.lang.String vendor,
int versionId,
java.lang.String licence)
A contract CorDapp contains contract definitions (state, commands) and verification logic
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getLicence() |
java.lang.String |
getShortName()
Cordapp
|
java.lang.String |
getVendor()
Cordapp
|
java.lang.String |
getVersion()
Cordapp's version
|
int |
getVersionId()
integer version of the CorDapp.
|
boolean |
hasUnknownFields() |
int |
hashCode() |
java.lang.String |
toString() |
getLicence, getShortName, getVendor, getVersion, hasUnknownFields
public Contract(java.lang.String shortName, java.lang.String vendor, int versionId, java.lang.String licence)
A contract CorDapp contains contract definitions (state, commands) and verification logic
shortName
- Cordapp's namevendor
- Cordapp's vendorversionId
- integer version of the CorDapp. Info.Contract.getVersion
is the toString of this.public java.lang.String getVersion()
Cordapp's version
public java.lang.String toString()
public boolean hasUnknownFields()
public java.lang.String getShortName()
Cordapp
's name
public java.lang.String getVendor()
Cordapp
's vendor
public int getVersionId()
integer version of the CorDapp.
Info.Contract.getVersion
is the toString of this.
Info.Contract.getVersion
public java.lang.String getLicence()
public java.lang.String component1()
Cordapp
's name
public java.lang.String component2()
Cordapp
's vendor
public int component3()
integer version of the CorDapp.
Info.Contract.getVersion
is the toString of this.
Info.Contract.getVersion
public java.lang.String component4()
public Info.Contract copy(java.lang.String shortName, java.lang.String vendor, int versionId, java.lang.String licence)
A contract CorDapp contains contract definitions (state, commands) and verification logic
public int hashCode()
public boolean equals(java.lang.Object p)