Uses of Class
org.nuiton.util.pagination.PaginationResult
| Package | Description |
|---|---|
| org.nuiton.util.pagination |
This package contains all about pagination :
PaginationParameter to express the input pagination parameters when
preparing a query
PaginationOrder represents an order clause together with asc/desc
PaginationResult represents a list together with the pagination parameters
used to get the list of elements. |
-
Uses of PaginationResult in org.nuiton.util.pagination
Methods in org.nuiton.util.pagination that return PaginationResult Modifier and Type Method Description static <T> PaginationResult<T>PaginationResult. fromFullList(java.util.List<T> fullList, PaginationParameter requestedPage)Creates an instance using the full list of elements ({code}fullList{/code}) and the {code}requestedPage{/code}PaginationParameter.static <T> PaginationResult<T>PaginationResult. of(java.util.List<T> elements, long count, PaginationParameter currentPage)Creates an instance using the already computed list of {code}elements{/code} and {code}count{/count}, together with the {code}currentPage{/code}PaginationParameterused to build it.<T> PaginationResult<T>PaginationResult. transform(java.util.function.Function<? super O,? extends T> function)Creates an instance of PaginationResult transforming the current one using the given function