public interface ResultPage extends List
Result
s.Modifier and Type | Method and Description |
---|---|
int |
getFromHits()
Returns the index of the first result on this page.
|
boolean |
getNext()
Returns
true if there is a next page. |
String |
getNextUrl()
Returns the URL of the next page.
|
int |
getNumberOfPages()
Returns the total number of pages.
|
Object |
getPageInfo(String pInfoKey)
Returns the extra page info of the specified key
|
Set<String> |
getPageInfoKeys()
Returns a set of strings to get the extra information to the page.
|
int |
getPageLength()
Returns the length of this page.
|
int |
getPageNumber()
Returns the number of the current page.
|
boolean |
getPrevious()
Returns
true if there is a previous page. |
String |
getPreviousUrl()
Returns the URL of the previous page.
|
int |
getSize()
Convenience method; the number of elements in
this list.
|
int |
getToHits()
Returns the index of the last result on this page.
|
int |
getTotalHits()
Returns the total number of results on the page.
|
String |
getUrl(int pPageNumber)
Returns the url of the given page.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
int getSize()
Convenience method; the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
The implementations of this method should delegate all it's calls to
List.size()
, and return the value returned by that method call.
List.size()
int getFromHits()
int getToHits()
int getTotalHits()
int getPageLength()
getSize()
to get the actual size
of this page.int getPageNumber()
int getNumberOfPages()
String getUrl(int pPageNumber)
pPageNumber
- the page you want to have the url for.getNumberOfPages()
is given, the url for the last page is
returnedString getPreviousUrl()
boolean getPrevious()
true
if there is a previous page.true
if we have a previous page, false
otherwise.String getNextUrl()
boolean getNext()
true
if there is a next page.true
if we have a next page, false
otherwise.Set<String> getPageInfoKeys()
© 1998- 2021 Escenic AS