Class AssociativeAddedTree.AssociativeAddedTreeNode<E extends Address, V>
java.lang.Object
inet.ipaddr.format.util.AssociativeAddedTree.AssociativeAddedTreeNode<E,V>
- Enclosing class:
AssociativeAddedTree<E extends Address, V>
-
Constructor Summary
ConstructorsConstructorDescriptionAssociativeAddedTreeNode(AssociativeAddressTrie.AssociativeTrieNode<E, inet.ipaddr.format.util.AssociativeAddressTrie.SubNodesMappingAssociative<E, V>> node) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()getKey returns the key of this node, which is the same as the key of the corresponding node in the originating trie.booleanisAdded()Returns whether the node was an added node in the original trie.toString()Returns a visual representation of this node including the key.toTreeString returns a visual representation of the sub-tree originating from this node, with one node per line.
-
Constructor Details
-
AssociativeAddedTreeNode
public AssociativeAddedTreeNode(AssociativeAddressTrie.AssociativeTrieNode<E, inet.ipaddr.format.util.AssociativeAddressTrie.SubNodesMappingAssociative<E, V>> node)
-
-
Method Details
-
getSubNodes
-
getKey
getKey returns the key of this node, which is the same as the key of the corresponding node in the originating trie.- Returns:
-
isAdded
public boolean isAdded()Returns whether the node was an added node in the original trie. This returns true for all nodes except possibly the root, since only added nodes are added to this tree, apart from the root. -
toString
-
toTreeString
toTreeString returns a visual representation of the sub-tree originating from this node, with one node per line.- Returns:
-