T
- the type of nodes this handler handlesK
- the key used by the nodes to identify childrenpublic interface ITreeNodeHandler<T,K>
TreeUtils
to create tree structures. We use
this factory-based approach as this allows us to create trees based on model
elements that do not have to implement any specific interfaces.Modifier and Type | Method and Description |
---|---|
T |
createRoot()
Create root of node of the tree.
|
T |
getOrCreateChild(T node,
K key)
Get the nodes child identified by the provided key.
|
T getOrCreateChild(T node, K key)
T createRoot()