Class CheckedListProofImpl<E>
- java.lang.Object
- 
- com.exonum.binding.common.proofs.list.CheckedListProofImpl<E>
 
- 
- All Implemented Interfaces:
- CheckedProof,- CheckedListProof
 
 public class CheckedListProofImpl<E> extends Object implements CheckedListProof A checked list proof includes list proof verification results.If it is correct you may access: - a calculated Merkle root hash
- proof elements
 getProofStatus()with description of why the proof is not valid.
- 
- 
Constructor SummaryConstructors Constructor Description CheckedListProofImpl(HashCode calculatedRootHash, NavigableMap<Long,E> elements, ListProofStatus proofStatus)Creates checked list proof.
 - 
Method SummaryModifier and Type Method Description NavigableMap<Long,E>getElements()Get all list elements.ListProofStatusgetProofStatus()Returns the status of this proof: whether it is structurally valid.HashCodegetRootHash()Returns the calculated root hash of the proof.booleanisValid()Returns true if proof status is valid, false otherwise.
 
- 
- 
- 
Constructor Detail- 
CheckedListProofImplpublic CheckedListProofImpl(HashCode calculatedRootHash, NavigableMap<Long,E> elements, ListProofStatus proofStatus) Creates checked list proof.- Parameters:
- calculatedRootHash- calculated root hash of the proof
- elements- proof elements collection
- proofStatus- a status of proof verification
 
 
- 
 - 
Method Detail- 
getElementspublic NavigableMap<Long,E> getElements() Description copied from interface:CheckedListProofGet all list elements. There might be several consecutive ranges.- Specified by:
- getElementsin interface- CheckedListProof<E>
 
 - 
getRootHashpublic HashCode getRootHash() Description copied from interface:CheckedProofReturns the calculated root hash of the proof. Must be equal to the Merkle root hash of the collection, providing this proof.- Specified by:
- getRootHashin interface- CheckedProof
 
 - 
getProofStatuspublic ListProofStatus getProofStatus() Description copied from interface:CheckedListProofReturns the status of this proof: whether it is structurally valid.- Specified by:
- getProofStatusin interface- CheckedListProof<E>
- Specified by:
- getProofStatusin interface- CheckedProof
 
 - 
isValidpublic boolean isValid() Description copied from interface:CheckedProofReturns true if proof status is valid, false otherwise. Details about the proof verification status could be obtained viaCheckedProof.getProofStatus().- Specified by:
- isValidin interface- CheckedProof
 
 
- 
 
-