Modifier and Type | Field and Description |
---|---|
private Class<E> |
dataClass |
private boolean |
isClosed |
private E |
nextElement |
private ScrollableResults |
results |
Constructor and Description |
---|
ScrollIterator(Class<E> dataClass,
ScrollableResults results) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the results and return resources.
|
boolean |
hasNext() |
boolean |
isClosed()
Check if the results has been closed.
|
E |
next() |
void |
remove()
Not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private final ScrollableResults results
private boolean isClosed
private E nextElement
ScrollIterator(Class<E> dataClass, ScrollableResults results)
public void remove()
remove
in interface Iterator<E>
UnsupportedOperationException
- Alwayspublic void close()
public boolean isClosed()