Package tech.jhipster.web.util
Interface PageUtil
public interface PageUtil
Utility class for creating a Page object.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> org.springframework.data.domain.Page<T>createPageFromList(List<T> list, org.springframework.data.domain.Pageable pageable) Create aPagefrom aListof objects
-
Method Details
-
createPageFromList
static <T> org.springframework.data.domain.Page<T> createPageFromList(List<T> list, org.springframework.data.domain.Pageable pageable) Create aPagefrom aListof objects- Type Parameters:
T- type of object- Parameters:
list- list of objectspageable- pagination information.- Returns:
- page containing objects, and attributes set according to pageable
- Throws:
IllegalArgumentException- - if list is null
-