org.jcae.mesh.amibe.util
Class QSortedTree.Node<E>
java.lang.Object
org.jcae.mesh.amibe.util.QSortedTree.Node<E>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<QSortedTree.Node<E>>
- Enclosing class:
- QSortedTree<E>
public static class QSortedTree.Node<E>
- extends java.lang.Object
- implements java.lang.Comparable<QSortedTree.Node<E>>, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
data
protected E data
child
protected final QSortedTree.Node<E>[] child
parent
protected QSortedTree.Node<E> parent
QSortedTree.Node
public QSortedTree.Node(E o,
double v)
newChilds
protected QSortedTree.Node<E>[] newChilds()
compareTo
public int compareTo(QSortedTree.Node<E> that)
- Specified by:
compareTo
in interface java.lang.Comparable<QSortedTree.Node<E>>
reset
public void reset(double v)
swap
public void swap(QSortedTree.Node<E> that)
getValue
public double getValue()
getData
public E getData()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
rotateL
public QSortedTree.Node<E> rotateL()
rotateR
public QSortedTree.Node<E> rotateR()
rotateRL
public QSortedTree.Node<E> rotateRL()
rotateLR
public QSortedTree.Node<E> rotateLR()
previousNode
public QSortedTree.Node<E> previousNode()
nextNode
public QSortedTree.Node<E> nextNode()