Class SimplePageRequest
java.lang.Object
com.atlassian.confluence.api.model.pagination.SimplePageRequest
- All Implemented Interfaces:
PageRequest
A simple immutable implementation of PageRequest
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionSimplePageRequest
(int start, int limit) protected
SimplePageRequest
(int start, Cursor cursor, int limit) SimplePageRequest
(Cursor cursor, int limit) SimplePageRequest
(LimitedRequest request) -
Method Summary
-
Field Details
-
ONE
-
-
Constructor Details
-
SimplePageRequest
-
SimplePageRequest
public SimplePageRequest(int start, int limit) - Parameters:
start
- zero-based start index for the page of results (first result is 0)limit
- the number of the results to return in the page
-
SimplePageRequest
-
SimplePageRequest
-
-
Method Details
-
getLimit
public int getLimit()- Specified by:
getLimit
in interfacePageRequest
- Returns:
- the number of the results to return in the page
-
getStart
public int getStart()- Specified by:
getStart
in interfacePageRequest
- Returns:
- zero-based start index for the page of results (first result is 0)
-
getCursor
- Specified by:
getCursor
in interfacePageRequest
- Returns:
- the identifier which is used to skip results from a previous query when paginating
-
toString
-
equals
-
hashCode
public int hashCode()
-