I have a List of entities. How do I convert it to Page Object using Spring MVC 4 and Spring Data JPA?
List
Page
There is one more Constructor :
Page page = new PageImpl<>(listOfsomething, pageable, listOfsomething.size());