|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.EmptyIteration<E,X>
public class EmptyIteration<E,X extends Exception>
An iterator that does not contain any elements.
| Constructor Summary | |
|---|---|
EmptyIteration()
Creates a new EmptyIteration. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
E |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation). |
| Methods inherited from class info.aduna.iteration.CloseableIterationBase |
|---|
close, handleClose, isClosed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyIteration()
| Method Detail |
|---|
public boolean hasNext()
IterationIteration.next() would return an element
rather than throwing a NoSuchElementException.)
public E next()
Iteration
public void remove()
Iteration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||