com.mhhe.clrs2e
Class DisjointSetLinkedList.Node

java.lang.Object
  |
  +--com.mhhe.clrs2e.DisjointSetLinkedList.Node
Enclosing class:
DisjointSetLinkedList

private static class DisjointSetLinkedList.Node
extends java.lang.Object

Private inner class for nodes of the list.


Field Summary
 DisjointSetLinkedList.Node next
          This node's successor in the list.
 DisjointSetLinkedList.DisjointSet representative
          The set containing this node.
 java.lang.Object theObject
          Reference to the object.
 
Constructor Summary
DisjointSetLinkedList.Node(java.lang.Object x)
          Makes a node for a given object.
 
Method Summary
 java.lang.String toString()
          Returns the String representation of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theObject

public java.lang.Object theObject
Reference to the object.


next

public DisjointSetLinkedList.Node next
This node's successor in the list.


representative

public DisjointSetLinkedList.DisjointSet representative
The set containing this node.

Constructor Detail

DisjointSetLinkedList.Node

public DisjointSetLinkedList.Node(java.lang.Object x)
Makes a node for a given object.

Parameters:
x - The object in this node.
Method Detail

toString

public java.lang.String toString()
Returns the String representation of this node.

Overrides:
toString in class java.lang.Object