Last active
July 28, 2022 09:21
-
-
Save dehidehidehi/bee1e7f4c0fa169811039583a5253d97 to your computer and use it in GitHub Desktop.
Sample instantiation of a PageImpl instance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Correct usage of a PageImpl which will return proper Pageable information. **/ | |
private <T> PageImpl<T> asPageable(List<T> theList, Pageable page) { | |
return new PageImpl<>(theList, page, theList.size()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment