T - the type parameterpublic abstract class PagedIterator<T> extends Object implements Iterator<T>
Aside from the normal iterator operation, this method exposes nextPage() and nextPageArray() that
allows the caller to retrieve entire pages.
This class is not thread-safe. Any one instance should only be called from a single thread.
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
List<T> |
nextPage()
Gets the next page worth of data.
|
void |
remove() |
protected abstract void |
wrapUp(T[] page)
This poorly named method, initializes items with local data after they are fetched.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected abstract void wrapUp(T[] page)
page - the page of items to be initializedCopyright © 2020. All rights reserved.