public abstract class PagedIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
nextPage()
that allows the caller to retrieve items per page.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
java.util.List<T> |
nextPage()
Gets the next page worth of data.
|
void |
remove() |
protected abstract void |
wrapUp(T[] page) |
protected abstract void wrapUp(T[] page)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>public java.util.List<T> nextPage()
Copyright © 2016. All Rights Reserved.