Package com.emc.documentum.rest.paging
Class PageUri<T>
java.lang.Object
com.emc.documentum.rest.paging.PageUri<T>
- Type Parameters:
T
- object class in the page
The URI info for pagination.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncurrent()
Current page URI, which is the same as request URIfirst()
First page URI, the page number always start with 1, and items-per-page should be the same as the one in requestReturn the URI info of the page.last()
Last page URI, return null if total is unknownnext()
Next page URI, if there is no next page (this is the last page or this page does not contain items per page requested), null will be returnedprev()
Previous page URI, if there is no previous page (this is the first page), null will be returned
-
Constructor Details
-
PageUri
Constructor- Parameters:
page
- a pageuriInfo
- the URI info for the page
-
-
Method Details
-
getUriInfo
Return the URI info of the page.- Returns:
- the URI info
-
current
Current page URI, which is the same as request URI- Returns:
- current page URI
-
first
First page URI, the page number always start with 1, and items-per-page should be the same as the one in request- Returns:
- first page URI
-
last
Last page URI, return null if total is unknown- Returns:
- last page URI
-
prev
Previous page URI, if there is no previous page (this is the first page), null will be returned- Returns:
- previous page URI
-
next
Next page URI, if there is no next page (this is the last page or this page does not contain items per page requested), null will be returned- Returns:
- next page URI
-