Constructor and Description |
---|
AddedTreeNode(AssociativeAddressTrie.AssociativeTrieNode<E,inet.ipaddr.format.util.AddressTrie.SubNodesMappingBasic<E>> node) |
Modifier and Type | Method and Description |
---|---|
E |
getKey()
getKey returns the key of this node, which is the same as the key of the corresponding node in the originating trie.
|
AddedTree.AddedTreeNode<E>[] |
getSubNodes()
Returns the sub-nodes of this node, which are not the same as the 0, 1 or 2 direct sub-nodes of the originating binary trie.
|
boolean |
isAdded()
Returns whether the node was an added node in the original trie.
|
String |
toString()
Returns a visual representation of this node including the key.
|
String |
toTreeString()
toTreeString returns a visual representation of the sub-tree originating from this node, with one node per line.
|
public AddedTreeNode(AssociativeAddressTrie.AssociativeTrieNode<E,inet.ipaddr.format.util.AddressTrie.SubNodesMappingBasic<E>> node)
public AddedTree.AddedTreeNode<E>[] getSubNodes()
public E getKey()
public boolean isAdded()
public String toString()
public String toTreeString()