public interface ListBuilder<T> extends Iterable<List<T>>
| Modifier and Type | Method and Description | 
|---|---|
| int | getAvailableSize()Gets the total number of elements available to return if the whole list were requested | 
| List<T> | getPage(int offset,
       int maxResults)Gets a page of results by providing the offset of the first element in the page, and the page size. | 
| List<T> | getRange(int startIndex,
        int endIndex)Gets a range of results by providing the indexes of the first and last elements you wish to return. | 
forEach, iterator, spliteratorList<T> getRange(int startIndex, int endIndex)
startIndex - the zero-based index of the first result you wish returnedendIndex - the zero-based index of the last result you wish returnedList<T> getPage(int offset, int maxResults)
offset - the zero-based index of the first result you wish returnedmaxResults - the size of the page requestedint getAvailableSize()
Copyright © 2003–2022 Atlassian. All rights reserved.