List of utility methods to do List Sub List
List | subListMaxSize(List sub List Max Size return subListMaxSize(list, 0, maxSize);
|
List | subListPage(List sub List Page int toIndex = Math.min(baseList.size(), fromIndex + maxPageSize); return baseList.subList(fromIndex, toIndex); |
List | truncatedSubList(List Gets a sublist of a list, truncated at the end of the list if too many elements are selected. final int limit = Math.min(end, inList.size()); return inList.subList(start, limit); |