Class ListProofElement
java.lang.Object
com.exonum.binding.common.proofs.list.ListProofElement
- All Implemented Interfaces:
ListProofNode
public final class ListProofElement extends Object implements ListProofNode
Represents an element of a proof list: a leaf node in a list proof tree.
-
Constructor Summary
Constructors Constructor Description ListProofElement(com.google.protobuf.ByteString element)
Creates a new ListProofElement. -
Method Summary
Modifier and Type Method Description void
accept(ListProofVisitor visitor)
Applies the visitor to this proof node.static Funnel<ListProofElement>
funnel()
com.google.protobuf.ByteString
getElement()
Returns the value of the element.
-
Constructor Details
-
ListProofElement
public ListProofElement(com.google.protobuf.ByteString element)Creates a new ListProofElement.- Parameters:
element
- an element of the list- Throws:
NullPointerException
- if the element is null
-
-
Method Details
-
accept
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
-
getElement
public com.google.protobuf.ByteString getElement()Returns the value of the element. -
funnel
-