Class ListProofHashNode
- java.lang.Object
-
- com.exonum.binding.common.proofs.list.ListProofHashNode
-
- All Implemented Interfaces:
ListProofNode
public final class ListProofHashNode extends java.lang.Object implements ListProofNode
Represents a hash of a Merkle sub-tree: a leaf node in proof trees.
-
-
Constructor Summary
Constructors Constructor Description ListProofHashNode(HashCode hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ListProofVisitor visitor)
Applies the visitor to this proof node.HashCode
getHash()
Returns the hash value.
-
-
-
Constructor Detail
-
ListProofHashNode
public ListProofHashNode(HashCode hash)
-
-
Method Detail
-
accept
public void accept(ListProofVisitor visitor)
Description copied from interface:ListProofNode
Applies the visitor to this proof node.Most implementations simply call
visitor.visit(this);
- Specified by:
accept
in interfaceListProofNode
- Parameters:
visitor
- a visitor to apply to this node
-
getHash
public HashCode getHash()
Returns the hash value.
-
-