Class AbstractCloseableIterator<E>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<E>
org.eclipse.net4j.util.collection.AbstractCloseableIterator<E>
- All Implemented Interfaces:
Iterator<E>,Closeable,CloseableIterator<E>
public abstract class AbstractCloseableIterator<E>
extends AbstractIterator<E>
implements CloseableIterator<E>
- Since:
- 3.7
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.collection.AbstractIterator
END_OF_DATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()protected abstract ObjectReturns the next iteration element, orAbstractIterator.END_OF_DATAif the end of the iteration has been reached.static <T> CloseableIterator<T>abstract booleanisClosed()Methods inherited from class org.eclipse.net4j.util.collection.AbstractIterator
empty, hasNext, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Constructor Details
-
AbstractCloseableIterator
public AbstractCloseableIterator()
-
-
Method Details
-
computeNextElement
Description copied from class:AbstractIteratorReturns the next iteration element, orAbstractIterator.END_OF_DATAif the end of the iteration has been reached.- Specified by:
computeNextElementin classAbstractIterator<E>
-
close
public abstract void close() -
isClosed
public abstract boolean isClosed() -
emptyCloseable
-