Class CheckedListProofImpl<E>

java.lang.Object
com.exonum.binding.common.proofs.list.CheckedListProofImpl<E>
All Implemented Interfaces:
CheckedProof, CheckedListProof<E>

public class CheckedListProofImpl<E>
extends java.lang.Object
implements CheckedListProof<E>
A checked list proof includes list proof verification results.

If it is correct you may access:

  • a calculated index hash of corresponding collection
  • proof elements

If the proof is the proof of absence, then empty collection of elements is returned.

If the proof is not valid, you may get the verification status using getProofStatus() with description of why the proof is not valid.

  • Constructor Summary

    Constructors 
    Constructor Description
    CheckedListProofImpl​(long size, HashCode calculatedIndexHash, java.util.NavigableMap<java.lang.Long,​E> elements, ListProofStatus proofStatus)
    Creates checked list proof.
  • Method Summary

    Modifier and Type Method Description
    java.util.NavigableMap<java.lang.Long,​E> getElements()
    Get all list proof elements.
    HashCode getIndexHash()
    Returns the calculated index hash of the proof.
    ListProofStatus getProofStatus()
    Returns the status of this proof: whether it is structurally valid.
    boolean isValid()
    Returns true if proof status is valid, false otherwise.
    long size()
    Returns the size of the list: the total number of elements in it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait