|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteIterator<T>
A 'forward'-only iterator over a non-local list of elements.
| Method Summary | |
|---|---|
void |
close()
Communicates that the iterator is no longer needed, in case the implementation can use it to optimise consumption of underlying resources. |
boolean |
hasNext()
Indicates whether there are more elements to iterate over. |
java.lang.String |
locator()
Returns a reference to the remote element list. |
T |
next()
Returns the next element. |
| Method Detail |
|---|
boolean hasNext()
true if there are more elements, false otherwise.
T next()
throws java.lang.Exception,
java.util.NoSuchElementException
java.lang.Exception - if the element could not be returned.
java.util.NoSuchElementException - if there are no further elements to iterate over.void close()
java.lang.String locator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||