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 java.lang.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
protected abstract java.lang.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) 2004-2019 Eike Stepper (Loehne, 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