jmetal.util.avl
Class AvlNode<T>

java.lang.Object
  extended by 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
 
Method Summary
 AvlNode<T> getClosestNode()
           
 int getHeight()
           
 T getItem()
           
 AvlNode getLeft()
           
 AvlNode getParent()
           
 AvlNode getRight()
           
 boolean hasLeft()
           
 boolean hasOnlyALeftChild()
           
 boolean hasOnlyARightChild()
           
 boolean hasParent()
           
 boolean hasRight()
           
 boolean isLeaf()
           
 void setClosestNode_(AvlNode<T> closestNode)
           
 void setHeight(int height)
           
 void setItem(T item)
           
 void setLeft(AvlNode left)
           
 void setParent(AvlNode parent)
           
 void setRight(AvlNode right)
           
 void updateHeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvlNode

public AvlNode(T item_)
Constructor

Parameters:
item_ -
Method Detail

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()