Interface Paginable<T>
-
- All Superinterfaces:
Collection<T>
,Iterable<T>
,List<T>
- All Known Subinterfaces:
PaginableDocumentModelList
,PaginableRecordSet
- All Known Implementing Classes:
LogEntryList
,PaginableDocumentModelListImpl
,PaginablePageProvider
,PaginableRecordSetImpl
,PaginableWithDelegate
public interface Paginable<T> extends List<T>
- Since:
- 5.7 (extracted from PaginableDocumentModelList)
- Author:
- Tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<QuickFilter>
getActiveQuickFilters()
Map<String,Aggregate<? extends Bucket>>
getAggregates()
List<QuickFilter>
getAvailableQuickFilters()
long
getCurrentPageIndex()
Returns the current page index as a zero-based integer.long
getCurrentPageOffset()
Returns the offset (starting from 0) of the first element in the current page orUNKNOWN_SIZE
.long
getCurrentPageSize()
Returns the number of elements in current page.String
getErrorMessage()
long
getMaxPageSize()
Returns the max number of results per page.long
getNumberOfPages()
Returns the total number of pages or 0 if number of pages is unknown.long
getPageSize()
Returns the number of results per page.long
getResultsCount()
Returns the number of result elements if available or a negative value if it is unknown:UNKNOWN_SIZE
if it is unknown as query was not done, and since 5.5,UNKNOWN_SIZE_AFTER_QUERY
if it is still unknown after query was done.long
getResultsCountLimit()
Limit of number of results beyond which the page provider may not be able to computegetResultsCount()
or navigate.boolean
hasAggregateSupport()
boolean
hasError()
boolean
isLastPageAvailable()
Returns a boolean expressing if the last page can be displayed.boolean
isNextPageAvailable()
Returns a boolean expressing if there are further pages.boolean
isPreviousPageAvailable()
Returns a boolean expressing if there is a previous page.boolean
isSortable()
Returns if this provider is sortable.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
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
-
-
-
-
Method Detail
-
getPageSize
long getPageSize()
Returns the number of results per page. 0 means no pagination.
-
getMaxPageSize
long getMaxPageSize()
Returns the max number of results per page. 0 means no pagination.If page size is greater than this maximum value, it will be taken into account instead.
-
getResultsCount
long getResultsCount()
Returns the number of result elements if available or a negative value if it is unknown:UNKNOWN_SIZE
if it is unknown as query was not done, and since 5.5,UNKNOWN_SIZE_AFTER_QUERY
if it is still unknown after query was done.
-
getNumberOfPages
long getNumberOfPages()
Returns the total number of pages or 0 if number of pages is unknown.
-
isNextPageAvailable
boolean isNextPageAvailable()
Returns a boolean expressing if there are further pages.
-
isLastPageAvailable
boolean isLastPageAvailable()
Returns a boolean expressing if the last page can be displayed.
-
isPreviousPageAvailable
boolean isPreviousPageAvailable()
Returns a boolean expressing if there is a previous page.
-
getCurrentPageSize
long getCurrentPageSize()
Returns the number of elements in current page.
-
getCurrentPageOffset
long getCurrentPageOffset()
Returns the offset (starting from 0) of the first element in the current page orUNKNOWN_SIZE
.- Since:
- 9.3
-
getCurrentPageIndex
long getCurrentPageIndex()
Returns the current page index as a zero-based integer.
-
isSortable
boolean isSortable()
Returns if this provider is sortable.
-
hasError
boolean hasError()
-
getErrorMessage
String getErrorMessage()
-
hasAggregateSupport
boolean hasAggregateSupport()
- Since:
- 6.0
-
getActiveQuickFilters
List<QuickFilter> getActiveQuickFilters()
- Since:
- 8.4
-
getAvailableQuickFilters
List<QuickFilter> getAvailableQuickFilters()
- Since:
- 8.4
-
getResultsCountLimit
long getResultsCountLimit()
Limit of number of results beyond which the page provider may not be able to computegetResultsCount()
or navigate.Requesting results beyond this limit may result in error. When
getResultsCount()
is negative, it means there may be more results than this limit.0 means there is no limit.
- Since:
- 9.3
-
-