public class CmsGallerySearchResultList extends java.util.ArrayList<CmsGallerySearchResult>
| Constructor and Description |
|---|
CmsGallerySearchResultList()
Creates a new result list with a default initial capacity of 100.
|
CmsGallerySearchResultList(int initialCapacity)
Creates a new result list with the specified initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(CmsGallerySearchResultList moreResults)
Appends the results from another search result list.
|
void |
calculatePages(int pageIndex,
int matchesPerPage)
Calculates the result pages.
|
int |
getHitCount()
Returns the hit count of all results found in the last search.
|
int |
getPageCount()
Returns the total number of search result pages.
|
int |
getResultPage()
Returns the index of the current result page.
|
void |
setHitCount(int hitCount)
Sets the hit count of all results found in the last search.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic CmsGallerySearchResultList()
public CmsGallerySearchResultList(int initialCapacity)
initialCapacity - the initial capacitypublic void append(CmsGallerySearchResultList moreResults)
moreResults - the second search result listpublic int getHitCount()
Since this list will only contain the result objects for the current display page, the size of the list is usually much less then the hit count of all results found.
public int getPageCount()
getHitCount(),
getResultPage()public int getResultPage()
getHitCount(),
getPageCount()public void setHitCount(int hitCount)
Since this list will only contain the result objects for the current display page, the size of the list is usually much less then the hit count of all results found.
hitCount - the hit count to setpublic void calculatePages(int pageIndex, int matchesPerPage)
pageIndex - the index of the current pagematchesPerPage - the matches per page