Class ListProofOfAbsence
- java.lang.Object
-
- com.exonum.binding.common.proofs.list.ListProofOfAbsence
-
- All Implemented Interfaces:
ListProofNode
public final class ListProofOfAbsence extends Object implements ListProofNode
Represents the proof of absence of a requested element or a range of elements by providing Merkle root hash of a corresponding proof list.
-
-
Constructor Summary
Constructors Constructor Description ListProofOfAbsence(HashCode merkleRoot)Creates ListProof absence node with given Merkle root.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ListProofVisitor visitor)Applies the visitor to this proof node.HashCodegetMerkleRoot()Returns the Merkle root of a corresponding proof list.
-
-
-
Constructor Detail
-
ListProofOfAbsence
public ListProofOfAbsence(HashCode merkleRoot)
Creates ListProof absence node with given Merkle root.
-
-
Method Detail
-
accept
public void accept(ListProofVisitor visitor)
Description copied from interface:ListProofNodeApplies the visitor to this proof node.Most implementations simply call
visitor.visit(this);- Specified by:
acceptin interfaceListProofNode- Parameters:
visitor- a visitor to apply to this node
-
getMerkleRoot
public HashCode getMerkleRoot()
Returns the Merkle root of a corresponding proof list.
-
-