Interface CheckedListProof<E>
- 
- All Superinterfaces:
- CheckedProof
 - All Known Implementing Classes:
- CheckedListProofImpl
 
 public interface CheckedListProof<E> extends CheckedProof A proof that some elements exist in a proof list. Example usage:HashCode expectedRootHash = // get a known root hash from block proof // UncheckedListProof proof = new UncheckedListProofAdapter(rootProofNode, serializer); // Check the proof CheckedListProof checkedProof = proof.check(); // Check the root hash if (checkedProof.isValid() && checkedProof.getRootHash().equals(expectedRootHash)) { // Get and use elements NavigableMap value = checkedProof.getElements(); }
- 
- 
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.- 
Methods inherited from interface com.exonum.binding.common.proofs.CheckedProofgetRootHash, isValid
 
- 
 
- 
- 
- 
Method Detail- 
getElementsNavigableMap<Long,E> getElements() Get all list elements. There might be several consecutive ranges.- Throws:
- IllegalStateException- if the proof is not valid
 
 - 
getProofStatusListProofStatus getProofStatus() Returns the status of this proof: whether it is structurally valid.- Specified by:
- getProofStatusin interface- CheckedProof
 
 
- 
 
-