Uses of Class
org.apache.commons.collections.list.TreeList.AVLNode
-
Packages that use TreeList.AVLNode Package Description org.apache.commons.collections.list This package contains implementations of theListinterface. -
-
Uses of TreeList.AVLNode in org.apache.commons.collections.list
Fields in org.apache.commons.collections.list declared as TreeList.AVLNode Modifier and Type Field Description protected TreeList.AVLNodeTreeList.TreeListIterator. currentCache of the last node that was returned byTreeList.TreeListIterator.next()orTreeList.TreeListIterator.previous().private TreeList.AVLNodeTreeList.AVLNode. leftThe left child node or the predecessor ifleftIsPrevious.protected TreeList.AVLNodeTreeList.TreeListIterator. nextCache of the next node that will be returned byTreeList.TreeListIterator.next().private TreeList.AVLNodeTreeList.AVLNode. rightThe right child node or the successor ifrightIsNext.private TreeList.AVLNodeTreeList. rootThe root node in the AVL treeMethods in org.apache.commons.collections.list that return TreeList.AVLNode Modifier and Type Method Description private TreeList.AVLNodeTreeList.AVLNode. balance()Balances according to the AVL algorithm.(package private) TreeList.AVLNodeTreeList.AVLNode. get(int index)Locate the element with the given index relative to the offset of the parent of this node.private TreeList.AVLNodeTreeList.AVLNode. getLeftSubTree()Gets the left node, returning null if its a faedelung.private TreeList.AVLNodeTreeList.AVLNode. getRightSubTree()Gets the right node, returning null if its a faedelung.(package private) TreeList.AVLNodeTreeList.AVLNode. insert(int index, java.lang.Object obj)Inserts a node at the position index.private TreeList.AVLNodeTreeList.AVLNode. insertOnLeft(int indexRelativeToMe, java.lang.Object obj)private TreeList.AVLNodeTreeList.AVLNode. insertOnRight(int indexRelativeToMe, java.lang.Object obj)private TreeList.AVLNodeTreeList.AVLNode. max()Gets the rightmost child of this node.private TreeList.AVLNodeTreeList.AVLNode. min()Gets the leftmost child of this node.(package private) TreeList.AVLNodeTreeList.AVLNode. next()Gets the next node in the list after this one.(package private) TreeList.AVLNodeTreeList.AVLNode. previous()Gets the node in the list before this one.(package private) TreeList.AVLNodeTreeList.AVLNode. remove(int index)Removes the node at a given position.private TreeList.AVLNodeTreeList.AVLNode. removeMax()private TreeList.AVLNodeTreeList.AVLNode. removeMin()private TreeList.AVLNodeTreeList.AVLNode. removeSelf()Removes this node from the tree.private TreeList.AVLNodeTreeList.AVLNode. rotateLeft()private TreeList.AVLNodeTreeList.AVLNode. rotateRight()Methods in org.apache.commons.collections.list with parameters of type TreeList.AVLNode Modifier and Type Method Description private intTreeList.AVLNode. getHeight(TreeList.AVLNode node)Returns the height of the node or -1 if the node is null.private intTreeList.AVLNode. getOffset(TreeList.AVLNode node)Gets the relative position.private voidTreeList.AVLNode. setLeft(TreeList.AVLNode node, TreeList.AVLNode previous)Sets the left field to the node, or the previous node if that is nullprivate intTreeList.AVLNode. setOffset(TreeList.AVLNode node, int newOffest)Sets the relative position.private voidTreeList.AVLNode. setRight(TreeList.AVLNode node, TreeList.AVLNode next)Sets the right field to the node, or the next node if that is nullConstructors in org.apache.commons.collections.list with parameters of type TreeList.AVLNode Constructor Description AVLNode(int relativePosition, java.lang.Object obj, TreeList.AVLNode rightFollower, TreeList.AVLNode leftFollower)Constructs a new node with a relative position.
-