Class 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 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: ListProofNode
        Applies the visitor to this proof node.

        Most implementations simply call visitor.visit(this);

        Specified by:
        accept in interface ListProofNode
        Parameters:
        visitor - a visitor to apply to this node
      • getElement

        public com.google.protobuf.ByteString getElement()
        Returns the value of the element.