public class PaginationResult
extends java.lang.Object
Constructor and Description |
---|
PaginationResult() |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPage() |
int |
getItemsPerPage() |
int |
getTotalPages() |
void |
setCurrentPage(int currentPage) |
void |
setItemsPerPage(int itemsPerPage) |
void |
setTotalPages(int totalPages)
The service implementation will set this to the count of total available pages of items
|
public int getTotalPages()
public void setTotalPages(int totalPages)
totalPages
- - if the result is not paginated then the value is set to -1.public int getCurrentPage()
public void setCurrentPage(int currentPage)
public int getItemsPerPage()
public void setItemsPerPage(int itemsPerPage)