|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mhhe.clrs2e.DisjointSetLinkedList.DisjointSet
Private inner class for each disjoint set.
Field Summary | |
DisjointSetLinkedList.Node |
head
The head of the list. |
int |
size
How many elements are in this set. |
DisjointSetLinkedList.Node |
tail
The tail of the list. |
Constructor Summary | |
DisjointSetLinkedList.DisjointSet(DisjointSetLinkedList.Node x)
Makes a singleton set with a given node. |
Method Summary | |
java.lang.String |
toString()
Returns the String representation of this
set, with each element appearing on a separate line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public DisjointSetLinkedList.Node head
public DisjointSetLinkedList.Node tail
public int size
Constructor Detail |
public DisjointSetLinkedList.DisjointSet(DisjointSetLinkedList.Node x)
x
- The node in this singleton set.Method Detail |
public java.lang.String toString()
String
representation of this
set, with each element appearing on a separate line.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |