jmetal.util.avl
Class AvlNode<T>
java.lang.Object
jmetal.util.avl.AvlNode<T>
public class AvlNode<T>
- extends java.lang.Object
Created with IntelliJ IDEA.
User: Antonio J. Nebro
Date: 08/07/13
Time: 15:46
To change this template use File | Settings | File Templates.
Constructor Summary |
AvlNode(T item_)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvlNode
public AvlNode(T item_)
- Constructor
- Parameters:
item_
-
getLeft
public AvlNode getLeft()
setLeft
public void setLeft(AvlNode left)
getParent
public AvlNode getParent()
setParent
public void setParent(AvlNode parent)
getRight
public AvlNode getRight()
setRight
public void setRight(AvlNode right)
getItem
public T getItem()
setItem
public void setItem(T item)
getHeight
public int getHeight()
setHeight
public void setHeight(int height)
updateHeight
public void updateHeight()
getClosestNode
public AvlNode<T> getClosestNode()
setClosestNode_
public void setClosestNode_(AvlNode<T> closestNode)
hasParent
public boolean hasParent()
hasLeft
public boolean hasLeft()
hasRight
public boolean hasRight()
isLeaf
public boolean isLeaf()
hasOnlyALeftChild
public boolean hasOnlyALeftChild()
hasOnlyARightChild
public boolean hasOnlyARightChild()