PaginationIterable

public abstract class PaginationIterable extends Object
implements Iterable<T>

Iterable which handles pagination for iterating over set of objects.

Nested Class Summary

class PaginationIterable.Page<T, Q>  

Public Constructor Summary

PaginationIterable(Optional<Q> startPage)

Public Method Summary

abstract Page<T, Q>
getPage(Optional<Q> nextPage)
Return next set of objects based on optional pagination token.
Iterator<T>

Inherited Method Summary

Public Constructors

public PaginationIterable (Optional<Q> startPage)

Parameters
startPage

Public Methods

public abstract Page<T, Q> getPage (Optional<Q> nextPage)

Return next set of objects based on optional pagination token.

Parameters
nextPage pagination token
Returns
Throws
IOException if fetching next set of objects fails

public Iterator<T> iterator ()

Send feedback about...

Cloud Search
Cloud Search