Class LimitedPagedRequestImpl
java.lang.Object
com.atlassian.servicedesk.api.util.paging.LimitedPagedRequestImpl
- All Implemented Interfaces:
LimitedPagedRequest
-
Constructor Summary
ModifierConstructorDescriptionprotected
LimitedPagedRequestImpl
(int start, int limit, int maxLimit) protected
LimitedPagedRequestImpl
(PagedRequest request, int maxLimit) -
Method Summary
Modifier and TypeMethodDescriptionstatic LimitedPagedRequest
create
(int maxLimit) static LimitedPagedRequest
create
(int start, int limit, int maxLimit) static LimitedPagedRequest
create
(PagedRequest request, int maxLimit) boolean
int
getLimit()
int
int
getStart()
Index of the first item to include in the result set.int
hashCode()
toString()
-
Constructor Details
-
LimitedPagedRequestImpl
-
LimitedPagedRequestImpl
protected LimitedPagedRequestImpl(int start, int limit, int maxLimit)
-
-
Method Details
-
create
-
create
-
create
-
getStart
public int getStart()Description copied from interface:LimitedPagedRequest
Index of the first item to include in the result set.- Specified by:
getStart
in interfaceLimitedPagedRequest
-
getLimit
public int getLimit()- Specified by:
getLimit
in interfaceLimitedPagedRequest
- Returns:
- the maximum results to fetch to attempt to fulfil the request
-
getMaxLimit
public int getMaxLimit()- Specified by:
getMaxLimit
in interfaceLimitedPagedRequest
- Returns:
- the maximum limit for this request
-
toString
-
hashCode
public int hashCode() -
equals
-