@Immutable
public class ContractExecutionResult
extends java.lang.Object
AssetProof
s 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 AssetProof s. |
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
AssetProof s 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
AssetProof s 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 AssetProof
s.contractResult
- a String
functionResult
- a String
ledgerProofs
- a list of AssetProof
s from LedgerauditorProofs
- a list of AssetProof
s 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()
AssetProof
s from Ledger.AssetProof
s from Ledgerpublic java.util.List<AssetProof> getLedgerProofs()
AssetProof
s from Ledger.AssetProof
s from Ledgerpublic java.util.List<AssetProof> getAuditorProofs()
AssetProof
s from Auditor.AssetProof
s from Auditorpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
ContractExecutionResult
and
equals
in class java.lang.Object
o
- an object to be tested for equalitytrue
if the other object is "equal to" this object otherwise false