| java.lang.Object org.jamwiki.utils.Pagination
Pagination | public class Pagination (Code) | | Utility class useful for paginating through a result set.
|
Constructor Summary | |
public | Pagination(int numResults, int offset) Create a pagination object with specified initial values.
Parameters: numResults - The maximum number of results that can be retrieved ordisplayed. Parameters: offset - The offset for the pagination. |
Method Summary | |
public int | getEnd() Return the last result of the current pagination, equivalent to offset + numResults. | public int | getNumResults() Return the number of results that this pagination allows. | public int | getOffset() Return the offset that this pagination allows. | public int | getStart() Return the starting point of any pagination, which is equivalent to the
offset. |
Pagination | public Pagination(int numResults, int offset)(Code) | | Create a pagination object with specified initial values.
Parameters: numResults - The maximum number of results that can be retrieved ordisplayed. Parameters: offset - The offset for the pagination. An offset of 100 indicatesthat the first 100 results should be ignored and numResults should bereturned starting at 100. |
getEnd | public int getEnd()(Code) | | Return the last result of the current pagination, equivalent to offset + numResults.
Return the last result of the current pagination, equivalent tooffset + numResults. |
getNumResults | public int getNumResults()(Code) | | Return the number of results that this pagination allows.
The number of results that this pagination allows. |
getOffset | public int getOffset()(Code) | | Return the offset that this pagination allows. Offset indicates
the starting point of any result to return, for example an offset of
10 with numResults of 5 indicates results 10-14.
The offset that this pagination allows. |
getStart | public int getStart()(Code) | | Return the starting point of any pagination, which is equivalent to the
offset. Offset indicates the starting point of any result to return,
for example an offset of 10 with numResults of 5 indicates results 10-14.
The starting point of any pagination. |
|
|