|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Traversal<T>
An interface that defines a functional iterator for traversing datasets
| Method Summary | |
|---|---|
T |
getFirst()
Produce the first element in the dataset represented by this |
Traversal<T> |
getRest()
Produce a
for the rest of the dataset |
boolean |
isEmpty()
Produce true if this
represents an empty dataset |
| Method Detail |
|---|
T getFirst()
Produce the first element in the dataset represented by this
Traversal
Throws IllegalUseOfTraversalException
if the dataset is empty.
IllegalUseOfTraversalExceptionTraversal<T> getRest()
Produce a
for the rest of the dataset Traversal
Throws IllegalUseOfTraversalException
if the dataset is empty.
Traversal for
the rest of this dataset if available -- otherwise
throws IllegalUseOfTraversalExceptionboolean isEmpty()
Traversal
represents an empty dataset
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||