Class AbstractCloseableIterator<E>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<E>
org.eclipse.net4j.util.collection.AbstractCloseableIterator<E>
- Type Parameters:
E- the element type
- 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 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 AbstractIterator
empty, hasNext, next, removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
isClosed
-
emptyCloseable
-