Here you can find the source of subListPage(List
public static <T> List<T> subListPage(List<T> baseList, int fromIndex, int maxPageSize)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static <T> List<T> subListPage(List<T> baseList, int fromIndex, int maxPageSize) { int toIndex = Math.min(baseList.size(), fromIndex + maxPageSize); return baseList.subList(fromIndex, toIndex); }/*from w w w .j a va2 s . c om*/ }