|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.tree.BinaryNode
algs.model.tree.RightThreadedBinaryNode<T>
T - public class RightThreadedBinaryNode<T extends java.lang.Comparable>
A RightThreadedBinaryNode adds a 'thread' link to the successor node in the Binary Tree for the given node.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface algs.debug.IGraphEntity |
|---|
IGraphEntity.Formatter |
| Constructor Summary | |
|---|---|
RightThreadedBinaryNode(java.lang.Comparable value)
Construct a node to belong in a right-threaded binary tree. |
|
| Method Summary | |
|---|---|
RightThreadedBinaryNode<T> |
getLeftSon()
Return the left son associated with this node. |
RightThreadedBinaryNode<T> |
getNext()
Returns the next node in the tree via the thread (or null). |
RightThreadedBinaryNode<T> |
getRightSon()
Return the right son associated with this node. |
boolean |
isThread()
Determines if this node is indeed maintaining a forward-pointer to the next in tree. |
java.lang.String |
nodeLabel()
Expose threaded value in the node label. |
| Methods inherited from class algs.model.tree.BinaryNode |
|---|
getValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RightThreadedBinaryNode(java.lang.Comparable value)
value - Value to be inserted.| Method Detail |
|---|
public boolean isThread()
true if this node is a right-thread nodepublic RightThreadedBinaryNode<T> getLeftSon()
IBinaryTreeNode
getLeftSon in interface IBinaryTreeNodegetLeftSon in class BinaryNodepublic RightThreadedBinaryNode<T> getRightSon()
IBinaryTreeNode
getRightSon in interface IBinaryTreeNodegetRightSon in class BinaryNodepublic RightThreadedBinaryNode<T> getNext()
public java.lang.String nodeLabel()
nodeLabel in interface IGraphEntitynodeLabel in class BinaryNode
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||