Package com.emc.documentum.rest.paging
Class Paginator<T>
java.lang.Object
com.emc.documentum.rest.paging.Paginator<T>
- Type Parameters:
T
- the object class in the page
A class to paginate items based on the page size.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Paginator
Construct a paginator for paging.- Parameters:
items
- a collection of items to be paginated, which is possible only a subset of all itemstotal
- the total number of items, which may be larger than the size of items to be paginated. total is null means total is unknown currently.
-
-
Method Details
-
paginate
Skip "offset" length of items and paginate the item collection according to "limit" and return the current page- Parameters:
page
- the page numberitemsPerPage
- the number of items per page- Returns:
- a Page object containing the items in this page and the paging URIs
-