T - the type parameterpublic abstract class PagedIterator<T> extends Object implements Iterator<T>
Aside from the normal iterator operation, this method exposes nextPage() that allows the caller to retrieve
items per page.
| 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)
Wrap up.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected abstract void wrapUp(T[] page)
page - the pageCopyright © 2020. All rights reserved.