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>
public class ManualTotalPaginationSupport<T> extends PaginationSupport<T>
Deprecated.since 6.10.0. UsePaginationServiceinstead.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
Constructors Constructor Description ManualTotalPaginationSupport()Deprecated.ManualTotalPaginationSupport(int pageSize)Deprecated.ManualTotalPaginationSupport(List<T> items, int startIndex, int total, int pageSize)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<T>getPage()Deprecated.Returns a subset of the list of items passed in, based on startIndex and the page sizeintgetTotal()Deprecated.Returns the total number of items in the listvoidsetTotal(int total)Deprecated.-
Methods inherited from class bucket.core.actions.PaginationSupport
getItems, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, setItems, setPageSize, setStartIndex
-
-
-
-
Method Detail
-
getPage
public List<T> 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>
-
-