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. |
Modifier and Type | Method and Description |
---|---|
static <T> PaginationResult<T> |
PaginationResult.fromFullList(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(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}
PaginationParameter used to build it. |
<T> PaginationResult<T> |
PaginationResult.transform(Function<? super O,? extends T> function)
Creates an instance of PaginationResult transforming the current one using the given function
|
Copyright © 2004–2020 CodeLutin. All rights reserved.