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, setTotal
public PaginationSupportAdaptor(long totalItems, int pageSize, PageResponse<T> pageResponse)
public List getItems()
getItems
in class PaginationSupport<T>
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>
Copyright © 2003–2021 Atlassian. All rights reserved.