Package | Description |
---|---|
jhelp.util.list |
Different type of lists
|
Modifier and Type | Field and Description |
---|---|
private Tree<INFORMATION> |
Tree.trunk
Trunk that contains this tree
|
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Tree<INFORMATION>> |
Tree.branches
Tree branches
|
Modifier and Type | Method and Description |
---|---|
Tree<INFORMATION> |
Tree.addBranch(INFORMATION information)
Add a branch to the tree
|
Tree<INFORMATION> |
Tree.addBranchSorted(INFORMATION information,
java.util.Comparator<INFORMATION> comparator)
Add a branch to the tree if ordered way.
|
Tree<INFORMATION> |
Tree.getBranch(int index)
Obtain a branch
|
Tree<INFORMATION> |
Tree.getMainTrunk()
Get tree main trunk.
|
Tree<INFORMATION> |
Tree.getTrunk()
Trunk parent
|
Tree<INFORMATION> |
Tree.removeBranch(int index)
Remove a branch
|
Tree<INFORMATION> |
Tree.searchBranch(Tree.TestFoundListener<INFORMATION> testFoundListener,
Tree.SearchMode searchMode,
boolean remove)
Search a branch by its information
|
private Tree<INFORMATION> |
Tree.searchLeftToRightDepth(Tree.TestFoundListener<INFORMATION> testFoundListener)
Search a branch in left to right depth rule.
|
private Tree<INFORMATION> |
Tree.searchLeftToRightHigh(Tree.TestFoundListener<INFORMATION> testFoundListener)
Search a branch in left to right high rule.
|
private Tree<INFORMATION> |
Tree.searchRightToLeftDepth(Tree.TestFoundListener<INFORMATION> testFoundListener)
Search a branch in right to left depth rule.
|
private Tree<INFORMATION> |
Tree.searchRightToLeftHigh(Tree.TestFoundListener<INFORMATION> testFoundListener)
Search a branch in right to left high rule.
|
Modifier and Type | Method and Description |
---|---|
EnumerationIterator<Tree<INFORMATION>> |
Tree.getBranches()
List of branches
|
java.util.List<Tree<INFORMATION>> |
Tree.listOfLeafs()
Collect all the tree leaf, no matter how depth they are
|
Modifier and Type | Method and Description |
---|---|
int |
Tree.ComparatorTree.compare(Tree<INFO> tree1,
Tree<INFO> tree2)
Compare 2 branches.
|
int |
Tree.ComparatorTree.compare(Tree<INFO> tree1,
Tree<INFO> tree2)
Compare 2 branches.
|
Modifier and Type | Method and Description |
---|---|
private void |
Tree.collectLeafs(java.util.List<Tree<INFORMATION>> list)
Collect all tree leafs and put them in a list
|
Constructor and Description |
---|
Tree(Tree<INFORMATION> trunk,
INFORMATION information)
Create a new instance of Tree
|