Class TreeNode<E,F>
java.lang.Object
de.elnarion.util.plantuml.generator.sequencediagram.internal.TreeNode<E,F>
- Type Parameters:
E- the value type of the tree data structure
Simple tree data structure.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TreeNode
Standard constructor for tree nodes.- Parameters:
paramKey- the key of the tree nodeparamValue- the value of the tree node
-
-
Method Details
-
addChildNode
Add a leaf to the tree.- Parameters:
paramChild- the child node of the tree aka leaf
-
getValue
Get the value of this tree node- Returns:
- F the value
-
getKey
Get the key of this tree node- Returns:
- E the key
-
getParents
Retrieve all parents of the current tree node/leaf to the root of the tree. If this is the root of the tree the list is empty.- Returns:
- List the parent tree node objects as list
-
getAllChildNodes
-