T - - the type of the itempublic class ListBuilderPaginationSupport<T> extends Object implements PaginationSupport<T>
| Constructor and Description | 
|---|
ListBuilderPaginationSupport(int startIndex,
                            int pageSize,
                            ListBuilder<T> items)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getNextStartIndex()
Returns the next start index. 
 | 
int[] | 
getNextStartIndexes()
Returns an array of start indexes for pages that appear after the current page
 If there are no further pages, null is returned 
 | 
int | 
getNiceEndIndex()
Returns an end index for use in the UI. 
 | 
int | 
getNiceStartIndex()
Returns a start index for use in the UI. 
 | 
List<T> | 
getPage()
Returns a subset of the list of items passed in, based on startIndex and the page size 
 | 
int | 
getPageSize()
Returns the number of items available on the current page. 
 | 
int | 
getPreviousStartIndex()
Returns the previous start index. 
 | 
int[] | 
getPreviousStartIndexes()
Returns an array of start indexes for pages that appear before the current page
 If there are no preceding pages, null is returned 
 | 
int | 
getStartIndex()
Returns the start index. 
 | 
int | 
getStartIndexValue()
Always return the start index value, regardless of whether the pagination has any total. 
 | 
int | 
getTotal()
Returns the total number of items in the list 
 | 
public ListBuilderPaginationSupport(int startIndex,
                                    int pageSize,
                                    ListBuilder<T> items)
public int getNiceEndIndex()
PaginationSupportgetNiceEndIndex in interface PaginationSupport<T>public int getStartIndex()
PaginationSupportgetStartIndex in interface PaginationSupport<T>public int getStartIndexValue()
PaginationSupportgetStartIndexValue in interface PaginationSupport<T>public int getNextStartIndex()
getNextStartIndex in interface PaginationSupport<T>public int getPreviousStartIndex()
getPreviousStartIndex in interface PaginationSupport<T>public int[] getNextStartIndexes()
PaginationSupportgetNextStartIndexes in interface PaginationSupport<T>public int[] getPreviousStartIndexes()
PaginationSupportgetPreviousStartIndexes in interface PaginationSupport<T>public int getNiceStartIndex()
PaginationSupportgetNiceStartIndex in interface PaginationSupport<T>public List<T> getPage()
getPage in interface PaginationSupport<T>public int getTotal()
PaginationSupportgetTotal in interface PaginationSupport<T>public int getPageSize()
PaginationSupportgetPageSize in interface PaginationSupport<T>Copyright © 2003–2021 Atlassian. All rights reserved.