public class PaginationSupportAdaptor<T> extends PaginationSupport<T>
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
PaginationSupportAdaptor(long totalItems,
int pageSize,
PageResponse<T> pageResponse) |
| Modifier and Type | Method and Description |
|---|---|
List |
getItems() |
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
|
getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, setItems, setPageSize, setStartIndex, setTotalpublic PaginationSupportAdaptor(long totalItems,
int pageSize,
PageResponse<T> pageResponse)
public List getItems()
getItems in class PaginationSupport<T>public List<T> getPage()
PaginationSupportgetPage in interface PaginationSupport<T>getPage in class PaginationSupport<T>public int getTotal()
PaginationSupportgetTotal in interface PaginationSupport<T>getTotal in class PaginationSupport<T>Copyright © 2003–2022 Atlassian. All rights reserved.