public class PageNumberPagination extends java.lang.Object implements PaginationRule
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
Constructor and Description |
---|
PageNumberPagination(int pageNo)
Constructor specifying the page number, using the default page size of 25.
|
PageNumberPagination(int pageNo, int pageSize)
Constructor specifying both page number and page size.
|
Modifier and Type | Method and Description |
---|---|
int |
getFirstResultIndex()
Get the absolute index of the first result on this page
|
int |
getRowLimit()
Get the maximum number of rows to return
|
public static final int DEFAULT_SIZE
public PageNumberPagination(int pageNo, int pageSize)
pageNo
- The ordinal number of the page of results to return (starts from 1)pageSize
- The size (in number of results) of each pagepublic PageNumberPagination(int pageNo)
pageNo
- The ordinal number of the page of results to return (starts from 1)public int getFirstResultIndex()
getFirstResultIndex
in interface PaginationRule
public int getRowLimit()
getRowLimit
in interface PaginationRule