public class AVLTree.Node extends Object
AVL tree nodes implement all the logical structure of the
tree. Nodes are created by the AVLTree
class.
The nodes are not independant from each other but must obey specific balancing constraints and the tree structure is rearranged as elements are inserted or deleted from the tree. The creation, modification and tree-related navigation methods have therefore restricted access. Only the order-related navigation, reading and delete methods are public.
AVLTree
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete the node from the tree.
|
T |
getElement()
Get the contained element.
|
AVLTree.Node |
getNext()
Get the node containing the next larger or equal element.
|
AVLTree.Node |
getPrevious()
Get the node containing the next smaller or equal element.
|
public T getElement()
public AVLTree.Node getPrevious()
getNext()
public AVLTree.Node getNext()
getPrevious()
public void delete()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.