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, wait
Methods 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:CloseableIterator
Closes 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceCloseableIterator<T>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-