T - item typeR - low level result typepublic abstract class Page<T,R> extends Object implements Iterable<T>
| Constructor and Description |
|---|
Page (List<T> content,
R lowLevelResult) |
| Modifier and Type | Method and Description |
|---|---|
R |
getLowLevelResult () |
abstract boolean |
hasNextPage ()
Checks whether this page has a "next page." If this method returns
true, the next page can be retrieved by calling
next. |
Iterator<T> |
iterator () |
abstract Page<T,R> |
nextPage ()
Retrieves the next page.
|
int |
size () |
String |
toString () |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait forEach, spliterator public abstract boolean hasNextPage()
next. If it
returns false, any call to next will be guaranteed to throw an
IllegalStateException.public abstract Page<T,R> nextPage()
NoSuchElementException - if there is no next pageAmazonServiceException - on error making the remote callpublic final int size()
public final R getLowLevelResult()