|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.utils.CloseableWrapper<E>
E - Type of objects being iteratedpublic class CloseableWrapper<E>
Wrap a plain Iterator with a CloseableIterator.
| Constructor Summary | |
|---|---|
CloseableWrapper(java.util.Iterator<E> base)
Create new CloseableWrapper for base iterator |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloseableWrapper(java.util.Iterator<E> base)
base - Iterator to wrap| Method Detail |
|---|
public void close()
close in interface info.aduna.collections.iterators.CloseableIterator<E>close in interface java.io.Closeablepublic boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||