Package com.atlassian.confluence.pages
Class ManualTotalPaginationSupport<T>
java.lang.Object
bucket.core.actions.PaginationSupport<T>
com.atlassian.confluence.pages.ManualTotalPaginationSupport<T>
- All Implemented Interfaces:
PaginationSupport<T>
Deprecated.
This class allows us to set the total number of items without
reading the size of the items list. This means we don't have
to load all the items to determine the size.
-
Field Summary
Fields inherited from class bucket.core.actions.PaginationSupport
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ManualTotalPaginationSupport(int pageSize) Deprecated.ManualTotalPaginationSupport(List<T> items, int startIndex, int total, int pageSize) Deprecated. -
Method Summary
Methods inherited from class bucket.core.actions.PaginationSupport
getItems, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, setItems, setPageSize, setStartIndex
-
Constructor Details
-
ManualTotalPaginationSupport
public ManualTotalPaginationSupport()Deprecated. -
ManualTotalPaginationSupport
public ManualTotalPaginationSupport(int pageSize) Deprecated. -
ManualTotalPaginationSupport
Deprecated.
-
-
Method Details
-
getPage
Deprecated.Description copied from class:PaginationSupportReturns a subset of the list of items passed in, based on startIndex and the page size- Specified by:
getPagein interfacePaginationSupport<T>- Overrides:
getPagein classPaginationSupport<T>- Returns:
- a subset of the list of items passed in, based on startIndex and the page size
-
getTotal
public int getTotal()Deprecated.Description copied from interface:PaginationSupportReturns the total number of items in the list- Specified by:
getTotalin interfacePaginationSupport<T>- Overrides:
getTotalin classPaginationSupport<T>- Returns:
- total number of items in the list
-
setTotal
public void setTotal(int total) Deprecated.- Overrides:
setTotalin classPaginationSupport<T>
-
PaginationServiceinstead.