Class AVLNode<T extends Comparable<? super T>>
java.lang.Object
com.thomas.trees.BTNode<T>
com.thomas.trees.AVLNode<T>
- Type Parameters:
T- The type of the Node
Simple implemenation of a AVL Tree node
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AVLNode
Creates a node without any children- Parameters:
value- The data value for the node
-
AVLNode
-
-
Method Details
-
setHeight
public void setHeight(int newHeight) Sets the height of the node- Parameters:
newHeight- The new height
-
getHeight
public int getHeight()Gets the height of the node- Returns:
- The height of the node
-
getLeft
-
getRight
-