public abstract class LookAheadIterator<E> extends CloseableIteratorBase<E>
| Constructor and Description |
|---|
LookAheadIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract E |
getNextElement()
Gets the next element.
|
protected void |
handleAlreadyClosed() |
protected void |
handleClose()
Called by
CloseableIteratorBase.close() when it is called for the first time. |
boolean |
hasNext() |
E |
next() |
void |
remove()
Throws an
UnsupportedOperationException. |
close, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected abstract E getNextElement()
public final boolean hasNext()
public final E next()
public void remove()
UnsupportedOperationException.protected void handleClose()
throws IOException
CloseableIteratorBaseCloseableIteratorBase.close() when it is called for the first time. This method
is only called once on each iteration. By default, this method does
nothing.handleClose in class CloseableIteratorBase<E>IOExceptionprotected void handleAlreadyClosed()
throws IOException
handleAlreadyClosed in class CloseableIteratorBase<E>IOExceptionCopyright © 2001–2015 Aduna. All rights reserved.