public class PageInformation extends Object
Constructor and Description |
---|
PageInformation(int offset,
int elementsPerPage,
int countOverallElements,
int pagingInterval)
Construct a new page information
|
Modifier and Type | Method and Description |
---|---|
int |
getCountOverallElements()
get the overall count of all elements
|
int |
getCountPages()
Get the the number of pages which is computed by the countOverallElements end
elementsPerPage.
|
int |
getElementsPerPage()
Get the number of elements of the page
|
int |
getOffset()
The first number of the element of the page
|
int |
getPageNumber()
Get the current page number which is computed by the offset end elementsPerPage.
|
int |
getPagingInterval()
Get the paging interval
|
public PageInformation(int offset, int elementsPerPage, int countOverallElements, int pagingInterval)
offset
- the offsetelementsPerPage
- the elements per pagecountOverallElements
- the count of all elementspagingInterval
- the interval (how many pages to show)public int getCountOverallElements()
public int getCountPages()
public int getElementsPerPage()
public int getOffset()
public int getPageNumber()
public int getPagingInterval()
Copyright © 2019 Communote team. All rights reserved.