Package | Description |
---|---|
com.nwawsoft.util.datastructures |
Modifier and Type | Class and Description |
---|---|
class |
BinaryTree
Tree data structure which can contain up to 2 additional
Tree s. |
Modifier and Type | Method and Description |
---|---|
Tree |
BinaryTree.getLeftTree() |
Tree |
BinaryTree.getRightTree() |
Tree |
Tree.getTree(int index)
Returns the tree with the specified index, starting from 0.
|
Tree |
BinaryTree.getTree(int index)
Returns the
Tree with the specified index, starting from 0. |
Modifier and Type | Method and Description |
---|---|
void |
Tree.addTree(Tree t)
Adds the specified Tree object to treeList and increases subTreeCount by 1 to keep it synchronized.
|
void |
BinaryTree.addTree(Tree t)
Deprecated.
use setLeftTree/setRightTree/getLeftTree/getRightTree instead.
|
void |
BinaryTree.setLeftTree(Tree leftTree) |
void |
BinaryTree.setRightTree(Tree rightTree) |
Constructor and Description |
---|
BinaryTree(Tree leftTree,
Tree rightTree)
Creates a
BinaryTree and sets the left and right tree. |
BinaryTree(Tree leftTree,
Tree rightTree,
java.lang.Object content)
Creates a
BinaryTree and sets the left and right tree. |