Class SimplePagedRequest
java.lang.Object
com.atlassian.servicedesk.api.util.paging.SimplePagedRequest
- All Implemented Interfaces:
PagedRequest
A simple immutable implementation of PageRequest
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimplePagedRequest
(int start, int limit) SimplePagedRequest
(LimitedPagedRequest request) -
Method Summary
-
Field Details
-
ONE
A page request of 1 thing
-
-
Constructor Details
-
SimplePagedRequest
-
SimplePagedRequest
public SimplePagedRequest(int start, int limit)
-
-
Method Details
-
paged
A page request of the specified start and limit- Parameters:
start
- the start in playlimit
- the limit in play- Returns:
- a page request
-
getLimit
public int getLimit()- Specified by:
getLimit
in interfacePagedRequest
- Returns:
- the number of the results to return in the page
-
getStart
public int getStart()- Specified by:
getStart
in interfacePagedRequest
- Returns:
- start index for the page of results
-
toString
-