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, isClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected abstract E getNextElement()
public final boolean hasNext()
public final E next()
public void remove()
UnsupportedOperationException
.protected void handleClose() throws IOException
CloseableIteratorBase
CloseableIteratorBase.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>
IOException
protected void handleAlreadyClosed() throws IOException
handleAlreadyClosed
in class CloseableIteratorBase<E>
IOException
Copyright © 2001–2015 Aduna. All rights reserved.