public class SimpleTreeNodeHandler<K> extends java.lang.Object implements ITreeNodeHandler<SimpleTreeNode<K>,K>
SimpleTreeNode
.Constructor and Description |
---|
SimpleTreeNodeHandler(K rootKey)
Create new handler.
|
Modifier and Type | Method and Description |
---|---|
SimpleTreeNode<K> |
createRoot()
Create root of node of the tree.
|
SimpleTreeNode<K> |
getOrCreateChild(SimpleTreeNode<K> node,
K key)
Get the nodes child identified by the provided key.
|
public SimpleTreeNodeHandler(K rootKey)
rootKey
- the key used for the root node.public SimpleTreeNode<K> createRoot()
createRoot
in interface ITreeNodeHandler<SimpleTreeNode<K>,K>
public SimpleTreeNode<K> getOrCreateChild(SimpleTreeNode<K> node, K key)
getOrCreateChild
in interface ITreeNodeHandler<SimpleTreeNode<K>,K>