Package com.mysema.commons.lang
Class IteratorAdapter<T>
java.lang.Object
com.mysema.commons.lang.IteratorAdapter<T>
- All Implemented Interfaces:
CloseableIterator<T>,Closeable,AutoCloseable,Iterator<T>
Adapter implementation for Iterator and CloseableIterator instances
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIteratorAdapter(Iterator<T> iter) IteratorAdapter(Iterator<T> iter, Closeable closeable) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
iter
-
closeable
-
-
Constructor Details
-
IteratorAdapter
-
IteratorAdapter
-
-
Method Details
-
asList
-
asList
-
close
public void close()Description copied from interface:CloseableIteratorCloses this iterator and releases any system resources associated with it. If the iterator is already closed then invoking this method has no effect.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableIterator<T>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-