Interface Paginated<T>
-
@ExperimentalApi public interface Paginated<T>
Paginated is a containing type that allows consumers to handle paginated data in different ways, depending on their use case. Data can be fetched in single pages, a common use-case that maps well to REST resources. Data can also be obtained via special-purpose iterators.- Since:
- 5.6
- See Also:
PageRequest
,PageResponse
,PagingIterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageResponse<T>
page(PageRequest request)
Retrieves a page of data.PagingIterator<T>
pagingIterator()
Obtain a PagingIterator, which will yield all possible results in a memory / CPU efficient manner.
-
-
-
Method Detail
-
page
PageResponse<T> page(PageRequest request)
Retrieves a page of data.
-
pagingIterator
PagingIterator<T> pagingIterator()
Obtain a PagingIterator, which will yield all possible results in a memory / CPU efficient manner.
-
-