Class SimplePageRequest
- java.lang.Object
-
- com.atlassian.confluence.api.model.pagination.SimplePageRequest
-
- All Implemented Interfaces:
PageRequest
public class SimplePageRequest extends Object implements PageRequest
A simple immutable implementation of PageRequest
-
-
Field Summary
Fields Modifier and Type Field Description static PageRequestONE
-
Constructor Summary
Constructors Modifier Constructor Description SimplePageRequest(int start, int limit)protectedSimplePageRequest(int start, Cursor cursor, int limit)SimplePageRequest(Cursor cursor, int limit)SimplePageRequest(LimitedRequest request)
-
-
-
Field Detail
-
ONE
public static final PageRequest ONE
-
-
Constructor Detail
-
SimplePageRequest
public SimplePageRequest(LimitedRequest request)
-
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
public SimplePageRequest(Cursor cursor, int limit)
-
SimplePageRequest
protected SimplePageRequest(int start, Cursor cursor, int limit)
-
-
Method Detail
-
getLimit
public int getLimit()
- Specified by:
getLimitin interfacePageRequest- Returns:
- the number of the results to return in the page
-
getStart
public int getStart()
- Specified by:
getStartin interfacePageRequest- Returns:
- zero-based start index for the page of results (first result is 0)
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfacePageRequest- Returns:
- the identifier which is used to skip results from a previous query when paginating
-
-