|
||||||||||
| 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.CloseableIteratorIteration<E,X>
public class CloseableIteratorIteration<E,X extends Exception>
An Iteration that can convert an Iterator to a
CloseableIteration.
| Field Summary |
|---|
| Fields inherited from class info.aduna.iteration.CloseableIterationBase |
|---|
logger |
| Constructor Summary | |
|---|---|
CloseableIteratorIteration()
Creates an uninitialized CloseableIteratorIteration, needs to be initialized by calling setIterator(Iterator) before it can be
used. |
|
CloseableIteratorIteration(Iterator<? extends E> iter)
Creates a CloseableIteratorIteration that wraps the supplied iterator. |
|
| 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). |
protected void |
setIterator(Iterator<? extends E> iter)
|
| 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 CloseableIteratorIteration()
setIterator(Iterator) before it can be
used.
public CloseableIteratorIteration(Iterator<? extends E> iter)
| Method Detail |
|---|
protected void setIterator(Iterator<? extends E> iter)
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 | |||||||||