public interface Page<ResourceT>
Callers can iterate over the Page object to get all elements returned in the page. The Page object also provides methods to retrieve additional pages using the page token, and to get the API request and response objects.
| Modifier and Type | Method and Description |
|---|---|
Page<ResourceT> |
getNextPage()
Retrieves the next Page object using the next page token, or
null if there are no more
pages. |
String |
getNextPageToken()
Returns the next page token from the response, or an empty string if there are no more pages.
|
Iterable<ResourceT> |
getValues()
Returns an iterable over the elements in this page.
|
boolean |
hasNextPage()
Returns true if there are more pages that can be retrieved from the API.
|
Iterable<ResourceT> |
iterateAll()
Returns an iterable that traverses all of the elements of the underlying data source.
|
boolean hasNextPage()
String getNextPageToken()
Page<ResourceT> getNextPage()
null if there are no more
pages. The hasNextPage() method can be used to check if a Page object is available.Iterable<ResourceT> iterateAll()