public class PagingUtility<T extends java.lang.Comparable<? super T>>
extends java.lang.Object
Constructor and Description |
---|
PagingUtility() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.domain.Page<T> |
getPagedData(org.springframework.data.domain.Pageable pageable,
java.util.List<T> list)
Get the paged data of the given list.
|
public org.springframework.data.domain.Page<T> getPagedData(org.springframework.data.domain.Pageable pageable, java.util.List<T> list) throws PageNotFoundException
pageable
- the paging information, must not be nulllist
- the list of content to paginate, must not be nullPageNotFoundException
- in case an invalid page is requested