@Test public void limitsEntries() { List<Integer> input = Arrays.asList(1, 2, 3, 4, 5); final List<Integer> result = PagingUtility.paging(input, 2); assertContains(result, 1, 2); }
public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } private  PagingUtility(); }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } private  PagingUtility(); static List<T> paging(List<T> listToPage, int limit); static List<T> paging(List<T> listToPage, int start, int limit); }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } private  PagingUtility(); static List<T> paging(List<T> listToPage, int limit); static List<T> paging(List<T> listToPage, int start, int limit);  }