@Immutable
public class ContractExecutionResult
extends java.lang.Object
AssetProofs from Ledger and Auditor.| Constructor and Description |
|---|
ContractExecutionResult(java.lang.String contractResult,
java.lang.String functionResult,
java.util.List<AssetProof> ledgerProofs,
java.util.List<AssetProof> auditorProofs)
Constructs a
ContractExecutionResult with the specified results and list of AssetProofs. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this object.
|
java.util.List<AssetProof> |
getAuditorProofs()
Returns the list of
AssetProofs from Auditor. |
java.util.Optional<java.lang.String> |
getContractResult()
Returns the result of contract execution.
|
java.util.Optional<java.lang.String> |
getFunctionResult()
Returns the result of function execution.
|
java.util.List<AssetProof> |
getLedgerProofs()
Returns the list of
AssetProofs from Ledger. |
java.util.List<AssetProof> |
getProofs()
Deprecated.
This method will be removed in release 5.0.0
|
java.util.Optional<javax.json.JsonObject> |
getResult()
Deprecated.
This method will be removed in release 5.0.0
|
int |
hashCode()
Returns a hash code value for the object.
|
public ContractExecutionResult(@Nullable
java.lang.String contractResult,
@Nullable
java.lang.String functionResult,
@Nullable
java.util.List<AssetProof> ledgerProofs,
@Nullable
java.util.List<AssetProof> auditorProofs)
ContractExecutionResult with the specified results and list of AssetProofs.contractResult - a StringfunctionResult - a StringledgerProofs - a list of AssetProofs from LedgerauditorProofs - a list of AssetProofs from Auditor@Deprecated public java.util.Optional<javax.json.JsonObject> getResult()
public java.util.Optional<java.lang.String> getContractResult()
public java.util.Optional<java.lang.String> getFunctionResult()
@Deprecated public java.util.List<AssetProof> getProofs()
AssetProofs from Ledger.AssetProofs from Ledgerpublic java.util.List<AssetProof> getLedgerProofs()
AssetProofs from Ledger.AssetProofs from Ledgerpublic java.util.List<AssetProof> getAuditorProofs()
AssetProofs from Auditor.AssetProofs from Auditorpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
ContractExecutionResult and
equals in class java.lang.Objecto - an object to be tested for equalitytrue if the other object is "equal to" this object otherwise false