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 voidaccept(ListProofVisitor visitor)Applies the visitor to this proof node.static Funnel<ListProofElement>funnel()com.google.protobuf.ByteStringgetElement()Returns the value of the element.
-
-
-
Constructor Detail
-
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 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
-
getElement
public com.google.protobuf.ByteString getElement()
Returns the value of the element.
-
funnel
public static Funnel<ListProofElement> funnel()
-
-