Pager

public class Pager<T extends JsonSerializable> extends BasePager<T> implements Iterable<T>

Pager class for iterating through paginated results.

Functions

Link copied to clipboard
public void forEach(Consumer<? super T> p)
Link copied to clipboard
public Iterator<T> iterator()
Returns an iterator for the Pager.
Link copied to clipboard
public String name()
Returns the name of the item for this pager.
Link copied to clipboard
public ImmutableList<T> nextPage()
Fetches the next page of items.
Link copied to clipboard
public ImmutableList<T> page()
Returns the current page of items as a list.
Link copied to clipboard
public int pageSize()
Returns the page size for this pager.
Link copied to clipboard
Returns an Optional of the HttpResponse for the current page, which can be used to get the http headers.
Link copied to clipboard
public int size()
Returns the size of the current page.
Link copied to clipboard