@Test public void testgetPaginationList3() { List<String> all = new ArrayList<String>(); for (int i = 0; i < 3; i++) { all.add("" + i); } List<String> paginationList = PaginationUtil.getPaginationList(all, 1, 5); assertEquals(3, paginationList.size()); assertEquals("0", paginationList.get(0)); assertEquals("2", paginationList.get(2)); }
public static <T> PaginationList<T> getPaginationList(List<T> all, int nowPageIndex) { return getPaginationList(all, nowPageIndex, Pagination.DEFAULT_PAGESIZE); }
PaginationUtil { public static <T> PaginationList<T> getPaginationList(List<T> all, int nowPageIndex) { return getPaginationList(all, nowPageIndex, Pagination.DEFAULT_PAGESIZE); } }
PaginationUtil { public static <T> PaginationList<T> getPaginationList(List<T> all, int nowPageIndex) { return getPaginationList(all, nowPageIndex, Pagination.DEFAULT_PAGESIZE); }  }
PaginationUtil { public static <T> PaginationList<T> getPaginationList(List<T> all, int nowPageIndex) { return getPaginationList(all, nowPageIndex, Pagination.DEFAULT_PAGESIZE); }  static PaginationList<T> getPaginationList(List<T> all, int nowPageIndex); static PaginationList<T> getPaginationList(List<T> all, int nowPageIndex, int pageSize); static PaginationList<T> getPaginationList(List<T> all, Pagination pagination, int nowPageIndex,
                                                          int pageSize); }
PaginationUtil { public static <T> PaginationList<T> getPaginationList(List<T> all, int nowPageIndex) { return getPaginationList(all, nowPageIndex, Pagination.DEFAULT_PAGESIZE); }  static PaginationList<T> getPaginationList(List<T> all, int nowPageIndex); static PaginationList<T> getPaginationList(List<T> all, int nowPageIndex, int pageSize); static PaginationList<T> getPaginationList(List<T> all, Pagination pagination, int nowPageIndex,
                                                          int pageSize);  }