|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.hierarchy.tree.TreeNavigator.TreeNodePathAndCache
protected class TreeNavigator.TreeNodePathAndCache
Internal representation of the path of TreeNodes.
The children of all path TreeNodes are cached to allow sibling determination.
| Field Summary | |
|---|---|
protected Map<TN,List<TN>> |
treeNodeToChildrenListMap
|
| Constructor Summary | |
|---|---|
protected |
TreeNavigator.TreeNodePathAndCache()
|
| Method Summary | |
|---|---|
void |
addTreeNodeToTreeNodePath(TN treeNode,
Integer indexWithinParentChildrenList)
Adds a new TreeNode to the current tree |
int |
determineIndexPositionOfCurrentTreeNodeWithinTheParentChildrenList()
|
TreeNavigator.TreeNodePathAndCache |
fork()
Creates a fork of the current TreeNavigator.TreeNodePathAndCache |
List<TN> |
getChildrenListFor(TN treeNode)
Returns the List of children which are determined when the TreeNode is added to the
TreeNavigator.TreeNodePathAndCache |
List<TN> |
getChildrenListOfCurrentTreeNode()
Returns the children TreeNode List of the parental TreeNode |
List<TN> |
getChildrenListOfParent()
Returns the children TreeNode List of the parental TreeNode |
TN |
getCurrentTreeNode()
Returns the current TreeNode |
TN |
getParent()
Returns the parent TreeNode of the current TreeNode is one exists, otherwise null |
List<TN> |
getTreeNodePathList()
|
boolean |
isEmpty()
|
void |
removeLastTreeNodeAndClearUnusedCachedChildrenLists()
Removes the last current TreeNode |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<TN extends TreeNode,List<TN extends TreeNode>> treeNodeToChildrenListMap
| Constructor Detail |
|---|
protected TreeNavigator.TreeNodePathAndCache()
| Method Detail |
|---|
public TreeNavigator.TreeNodePathAndCache fork()
TreeNavigator.TreeNodePathAndCache
public void addTreeNodeToTreeNodePath(TN treeNode,
Integer indexWithinParentChildrenList)
TreeNode to the current tree
treeNode - indexWithinParentChildrenList - public int size()
List.size()public boolean isEmpty()
List.isEmpty()public TN getCurrentTreeNode()
TreeNode
public void removeLastTreeNodeAndClearUnusedCachedChildrenLists()
TreeNode
public List<TN> getChildrenListFor(TN treeNode)
List of children which are determined when the TreeNode is added to the
TreeNavigator.TreeNodePathAndCache
treeNode -
public TN getParent()
TreeNode of the current TreeNode is one exists, otherwise null
public List<TN> getChildrenListOfParent()
TreeNode List of the parental TreeNode
public List<TN> getChildrenListOfCurrentTreeNode()
TreeNode List of the parental TreeNode
public int determineIndexPositionOfCurrentTreeNodeWithinTheParentChildrenList()
public List<TN> getTreeNodePathList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||