|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.store.ReleasableAdaptorForIterator<T>
T
- The iterator type.public class ReleasableAdaptorForIterator<T>
Simple wrapper around a standard iterator to allow it to be used as a releasable iterator.
Constructor Summary | |
---|---|
ReleasableAdaptorForIterator(java.util.Iterator<T> source)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
hasNext()
|
T |
next()
|
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReleasableAdaptorForIterator(java.util.Iterator<T> source)
source
- The input source.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |