|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstresstests.datasets.TraversalList<T>
public class TraversalList<T>
A non-mutable iterator wrapper for a recursively built AList
TraversalCitiesList 22 March 2006
Field Summary | |
---|---|
(package private) AList<T> |
cities
|
Constructor Summary | |
---|---|
TraversalList(AList<T> cities)
Constructor - save the data to traverse |
Method Summary | |
---|---|
T |
getFirst()
produce the first data element in the current Traversal |
Traversal<T> |
getRest()
produce the Traversal for the rest of the data |
boolean |
isEmpty()
test whether there are more items to traverse |
static void |
main(java.lang.String[] argv)
Self Test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
AList<T> cities
Constructor Detail |
---|
public TraversalList(AList<T> cities)
Method Detail |
---|
public Traversal<T> getRest()
Traversal
for the rest of the data
getRest
in interface Traversal<T>
Traversal
for
the rest of this dataset if available -- otherwise
throws IllegalUseOfTraversalException
public T getFirst()
Traversal
getFirst
in interface Traversal<T>
IllegalUseOfTraversalException
public boolean isEmpty()
isEmpty
in interface Traversal<T>
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |