Class PaginationUtils
java.lang.Object
org.craftercms.studio.impl.v2.utils.PaginationUtils
Utility class with methods for pagination.
- Author:
- avasquez
-
Method Summary
-
Method Details
-
paginate
Performs pagination on thelist, returning from the specifiedoffsetto the specifiedlimit. The list can also be sorted by thesortBy(optional).- Parameters:
list- the list to paginateoffset- the offset from where to startlimit- the max number of elements that the paginated list should includesortBy- the property used for sorting- Returns:
- the paginated list
-