Package | Description |
---|---|
datastructures.tree |
Modifier and Type | Method and Description |
---|---|
TreeNode<T> |
TreeNode.getFather()
Gets the father of the node
|
TreeNode<T> |
TreeNode.getFirstChild()
Returns the first child of the node
|
TreeNode<T> |
TreeNode.getLastChild()
Returns the last child of the node
|
TreeNode<T> |
TreeNode.getNextSibling()
Returns the next sibling of the node
|
TreeNode<T> |
TreeNode.getPreviousSibling()
Returns the next sibling of the node
|
TreeNode<T> |
ITree.getRoot()
Returns the root of the tree
|
Modifier and Type | Method and Description |
---|---|
IList<TreeNode<T>> |
TreeNode.getChildren()
Returns a list with its children
|
Modifier and Type | Method and Description |
---|---|
void |
TreeNode.addChild(TreeNode<T> element)
Adds a new child to the node
|
static <T> ITree<T> |
TreeFactory.newInstanceTree(TreeNode<T> root)
Returns an instance of Tree
|
void |
Action.performAction(TreeNode<T> t)
Action to realize with every elements of the tree this method stores the
result of the action into a store
|
void |
TreeNode.setFather(TreeNode<T> p)
Sets the father of the node
|