Class 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 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: 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
      • getMerkleRoot

        public HashCode getMerkleRoot()
        Returns the Merkle root of a corresponding proof list.