Bridges-Java-2.3.2
2.3.2
Bridges(JavaAPI)
|
This class extends the BSTElement class for use in building AVL trees. AVL tree elements include a 'height' and a 'balFactor' value, representing the height and balance factor of the AVL tree at that node, respectively. This is useful in representing AVL trees. More...
Additional Inherited Members | |
![]() | |
String | getDataStructType () |
void | validateVal (E value) |
![]() | |
abstract String | getDataStructType () |
![]() | |
String | QUOTE = "\"" |
This class extends the BSTElement class for use in building AVL trees. AVL tree elements include a 'height' and a 'balFactor' value, representing the height and balance factor of the AVL tree at that node, respectively. This is useful in representing AVL trees.
Generic paramaters: K - key value, E - appl dependent data component
bridges.base.AVLTreeElement< K, E >.AVLTreeElement | ( | ) |
Construct an AVLTreeElement with default values
bridges.base.AVLTreeElement< K, E >.AVLTreeElement | ( | K | k, |
E | e | ||
) |
Construct an AVLTreeElement holding a key value "k" and an object "e"
k | the search key |
e | the appl specific object that Element is holding |
int bridges.base.AVLTreeElement< K, E >.getBalanceFactor | ( | ) |
This method returns the balance factor of the tree at this node
String bridges.base.AVLTreeElement< K, E >.getDataStructType | ( | ) |
This method gets the data structure type
int bridges.base.AVLTreeElement< K, E >.getHeight | ( | ) |
This method returns the height of the tree at this node
AVLTreeElement<K, E> bridges.base.AVLTreeElement< K, E >.getLeft | ( | ) |
This method returns the left child of the tree node
AVLTreeElement<K, E> bridges.base.AVLTreeElement< K, E >.getRight | ( | ) |
This method returns the right child of tree node
void bridges.base.AVLTreeElement< K, E >.setBalanceFactor | ( | int | bf | ) |
This method sets the balance factor of the tree at this node
balance | factor bf |
void bridges.base.AVLTreeElement< K, E >.setHeight | ( | int | h | ) |
This method sets the height of the tree at this node
height | h |