T
- the type of resource contained in this pagepublic interface ResourcePage<T> extends List<T>
Modifier and Type | Method and Description |
---|---|
boolean |
hasNextPage()
Checks whether this page has a "next page." If this method returns
true, the next page can be retrieved by calling
next . |
ResourcePage<T> |
nextPage()
Retrieves the next page of results.
|
ResourcePage<T> |
nextPage(ResultCapture<Object> extractor)
Retrieves the next page of results, extracting the request id and
raw result object into the given context object.
|
boolean hasNextPage()
next
. If it
returns false, any call to next
will be guaranteed to throw an
IllegalStateException
.ResourcePage<T> nextPage()
IllegalStateException
- if there is no next pageAmazonServiceException
- on error making the remote callResourcePage<T> nextPage(ResultCapture<Object> extractor)
extractor
- a result extractor objectIllegalStateException
- if there is no next pageAmazonServiceException
- on error making the remote callCopyright © 2014. All rights reserved.