Package com.atlassian.bitbucket.util
Interface PageRequest
- All Known Implementing Classes:
PageRequestImpl
public interface PageRequest
Pagination for a request.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The maximum size of any page limit. -
Method Summary
Modifier and TypeMethodDescriptionbuildRestrictedPageRequest
(int maxLimit) int
getLimit()
int
getStart()
-
Field Details
-
MAX_PAGE_LIMIT
static final int MAX_PAGE_LIMITThe maximum size of any page limit.- See Also:
-
-
Method Details
-
buildRestrictedPageRequest
- Parameters:
maxLimit
- the maximum limit allowed in a page- Returns:
- a copy of this pageRequest with the minimum of limit and maxLimit
-
getLimit
int getLimit()- Returns:
- the maximum allowed size of the page
-
getStart
int getStart()- Returns:
- the index of the element in the result set that this page will start at
-