public class ManualTotalPaginationSupport<T> extends PaginationSupport<T>
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE
Constructor and Description |
---|
ManualTotalPaginationSupport() |
ManualTotalPaginationSupport(int pageSize) |
ManualTotalPaginationSupport(List<T> items,
int startIndex,
int total,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getPage()
Returns a subset of the list of items passed in, based on startIndex and the page size
|
int |
getTotal()
Returns the total number of items in the list
|
void |
setTotal(int total) |
getCountOnEachPage, getEndIndex, getItems, getNextIndex, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousIndex, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, setItems, setPageSize, setStartIndex
public ManualTotalPaginationSupport()
public ManualTotalPaginationSupport(int pageSize)
public List<T> getPage()
PaginationSupport
getPage
in interface PaginationSupport<T>
getPage
in class PaginationSupport<T>
public int getTotal()
PaginationSupport
getTotal
in interface PaginationSupport<T>
getTotal
in class PaginationSupport<T>
public void setTotal(int total)
setTotal
in class PaginationSupport<T>
Copyright © 2003–2016 Atlassian. All rights reserved.