|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.sanger.psu.gfmerge.util.algotools._old.RBNode
A node in a Red-Black tree
RBTree
Field Summary | |
RBNode |
leftChild
This node's left child |
RBNode |
rightChild
This node's right child |
Constructor Summary | |
RBNode(long value)
Create a red RBNode with the the specified value |
Method Summary | |
int |
compareValue(long value)
Compares the specified value with the value of the node |
java.awt.Color |
getColour()
Get the node's colour |
long |
getValue()
Get the value stored in this node |
void |
setColour(java.awt.Color colour)
Set the node's colour - ensures it is only red or black |
void |
setValue(long value)
Set the value stored in this node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public RBNode leftChild
public RBNode rightChild
Constructor Detail |
public RBNode(long value)
value
- The value of the newly created NodeMethod Detail |
public long getValue()
public void setValue(long value)
value
- The valuepublic int compareValue(long value)
value
- The value to compare with the node's value
public java.awt.Color getColour()
public void setColour(java.awt.Color colour)
colour
- A Color representing the node's colourColor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |