T
- public interface Pager<T>
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCount()
Get the total number of objects in this result set (not in this page).
|
java.lang.Integer |
getCurrentIndex()
The index of this page.
|
java.lang.Integer |
getFirstRecord()
Returns the index of the first record in this result set
|
java.util.List<java.lang.Integer> |
getIndices()
Get a list of page indices for which labels are available.
|
java.lang.Integer |
getLastRecord()
Returns the index of the last record in this result set
|
java.lang.Integer |
getNextIndex()
The index of the next page in this result set, or null if this is the
last page in the result set.
|
java.lang.String |
getPageNumber(int index)
Get a string label for a given page
(NOTE: Labels may not be calculated for each page in the result set,
especially if the result set is large or the operation for calculating the
label is expensive.
|
java.lang.Integer |
getPagesAvailable()
The total number of pages available for this query, or 0 if there are
no matching objects
|
java.lang.Integer |
getPageSize()
Gets the size of pages in this result set.
|
java.lang.Integer |
getPrevIndex()
The index of the previous page in this result set, or null if this is the
first page in the result set.
|
java.util.List<T> |
getRecords()
Returns the records in this page.
|
java.lang.String |
getSuggestion()
Returns a suggested query string (only applicable for free-text / lucene queries).
|
java.lang.Integer getPagesAvailable()
java.lang.Integer getNextIndex()
java.lang.Integer getPrevIndex()
java.lang.Integer getCurrentIndex()
java.lang.String getPageNumber(int index)
getIndices()
.index
- java.lang.Integer getPageSize()
java.util.List<java.lang.Integer> getIndices()
java.lang.Long getCount()
getPageSize()
then getPagesAvailable()
> 1java.lang.Integer getFirstRecord()
java.lang.Integer getLastRecord()
java.util.List<T> getRecords()
java.lang.String getSuggestion()
Copyright © 2007-2020 EDIT. All Rights Reserved.