Uses of Class
org.nuiton.util.pagination.PaginationResult
Packages that use PaginationResult
Package
Description
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 PaginationResultModifier and TypeMethodDescriptionstatic <T> PaginationResult<T> PaginationResult.empty(PaginationParameter requestedPage) Creates an instance for an empty result.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}PaginationParameterused to build it.<T> PaginationResult<T> Creates an instance of PaginationResult transforming the current one using the given function for each element<T> PaginationResult<T> PaginationResult.transformAll(Function<List<O>, List<T>> function) Creates an instance of PaginationResult transforming the current one using the given function for all elements