@NotThreadSafe public abstract class PrefetchingIterator<E> extends Object implements Iterator<E>
Constructor and Description |
---|
PrefetchingIterator() |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
calculateNext() |
boolean |
hasNext() |
protected boolean |
isRemoveSupported() |
E |
next() |
void |
remove() |
protected void |
remove(E current)
Perform the removal
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected abstract E calculateNext() throws NoSuchElementException
NoSuchElementException
- If no more elementsprotected boolean isRemoveSupported()
true
if removal is supportedprotected void remove(E current)
current
- The current item to removeCopyright © 2014–2016. All rights reserved.