Class MerkleTree.TreeRange

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Range<Token>>
    Enclosing class:
    MerkleTree

    public static class MerkleTree.TreeRange
    extends Range<Token>
    The public interface to a range in the tree. NB: A TreeRange should not be returned by a public method unless the parents of the range it represents are already invalidated, since it will allow someone to modify the hash. Alternatively, a TreeRange may be created with a null tree, indicating that it is read only.
    See Also:
    Serialized Form
    • Field Detail

      • depth

        public final int depth
    • Method Detail

      • hash

        public void hash​(byte[] hash)
      • addHash

        public void addHash​(MerkleTree.RowHash entry)
        Parameters:
        entry - Row to mix into the hash for this range.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Range<Token>