@Immutable
public final class LedgerValidationResult
extends java.lang.Object
| Constructor and Description |
|---|
LedgerValidationResult(StatusCode code,
AssetProof ledgerProof,
AssetProof auditorProof)
Constructs a
LedgerValidationResult with the specified status code, asset proof from
Ledger, and asset proof from Auditor. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this object.
|
java.util.Optional<AssetProof> |
getAuditorProof()
Returns the proof of the asset from Auditor.
|
StatusCode |
getCode()
Returns the status code.
|
java.util.Optional<AssetProof> |
getLedgerProof()
Returns the proof of the asset from Ledger.
|
java.util.Optional<AssetProof> |
getProof()
Deprecated.
This method will be removed in release 5.0.0
|
int |
hashCode()
Returns a hash code value for the object.
|
public LedgerValidationResult(StatusCode code, @Nullable AssetProof ledgerProof, @Nullable AssetProof auditorProof)
LedgerValidationResult with the specified status code, asset proof from
Ledger, and asset proof from Auditor.code - a StatusCodeledgerProof - an AssetProofauditorProof - an AssetProofpublic StatusCode getCode()
@Deprecated public java.util.Optional<AssetProof> getProof()
public java.util.Optional<AssetProof> getLedgerProof()
public java.util.Optional<AssetProof> getAuditorProof()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
LedgerValidationResult 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