Class Pages
java.lang.Object
com.atlassian.greenhopper.service.Pages
Provides support for creating pages from list.
- Since:
- 6.7
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Pages.Builder<T>
static <T> Page<T>
toPage
(Iterable<T> values, PageRequest request, Long total) Creates a page from values and aPageRequest
.
-
Constructor Details
-
Pages
public Pages()
-
-
Method Details
-
toPage
Creates a page from values and aPageRequest
. This method will fill information about the the total number of values, start and size of the returned page.- Type Parameters:
T
- the type of values from which page is created- Parameters:
values
- iterable of values from which the page is createdrequest
- request for the page- Returns:
- the page with filtered and transformed values
-
builder
-