Package org.symbol.sdk.symbol
Class Merkle.TreeNode
java.lang.Object
org.symbol.sdk.symbol.Merkle.TreeNode
- Direct Known Subclasses:
Merkle.BranchNode,Merkle.LeafNode
- Enclosing class:
Merkle
- TreeNode
- Node in a compact Patricia tree.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a tree node. -
Method Summary
Modifier and TypeMethodDescriptionabstract CryptoTypes.Hash256Calculates the hash of this node.hexPath()Returns the hex representation of the path, truncated topath.sizenibbles.
-
Field Details
-
path
Node path.
-
-
Constructor Details
-
TreeNode
Creates a tree node.- Parameters:
path- Node path.
-
-
Method Details
-
hexPath
- TreeNode.hexPath
- Returns the hex representation of the path, truncated to
path.sizenibbles.
- Returns:
- Hex representation of path.
-
calculateHash
- TreeNode.calculateHash
- Calculates the hash of this node.
- Returns:
- Hash of the node.
-