Skip to content
Snippets Groups Projects

Deploy

4 files
+ 18
10
Compare changes
  • Side-by-side
  • Inline

Files

@@ -59,10 +59,10 @@ public class PageUtil {
/**
* Turns the given list of values into a page of values which represent a sublist of the original.
*
* @param pageable The pageable describing what to show on the page.
* @param values The total list of values of which a page needs to be shown.
* @param <T> The type of the values in the page.
* @return The Page cut out from the original list of values.
* @param pageable The pageable describing what to show on the page.
* @param values The total list of values of which a page needs to be shown.
* @param <T> The type of the values in the page.
* @return The Page cut out from the original list of values.
*/
public static <T> Page<T> toPage(Pageable pageable, List<T> values) {
return toPage(pageable, values, null);
Loading