public abstract class AbstractCloseableIterator<E> extends AbstractIterator<E> implements CloseableIterator<E>
END_OF_DATA
Constructor and Description |
---|
AbstractCloseableIterator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
protected abstract Object |
computeNextElement()
Returns the next iteration element, or
AbstractIterator.END_OF_DATA if the end of the iteration has been reached. |
static <T> CloseableIterator<T> |
emptyCloseable() |
abstract boolean |
isClosed() |
empty, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next, remove
protected abstract Object computeNextElement()
AbstractIterator
AbstractIterator.END_OF_DATA
if the end of the iteration has been reached.computeNextElement
in class AbstractIterator<E>
public static <T> CloseableIterator<T> emptyCloseable()
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html