@Test void testGetTotalPagesBelow() { assertEquals(2, PageUtils.getTotalPages(5, 9)); }
public static int getTotalPages(int pageSize, int totalElements) { return pageSize > 0 ? (int) Math.ceil(totalElements / (double) pageSize) : 0; }
PageUtils { public static int getTotalPages(int pageSize, int totalElements) { return pageSize > 0 ? (int) Math.ceil(totalElements / (double) pageSize) : 0; } }
PageUtils { public static int getTotalPages(int pageSize, int totalElements) { return pageSize > 0 ? (int) Math.ceil(totalElements / (double) pageSize) : 0; } private  PageUtils(); }
PageUtils { public static int getTotalPages(int pageSize, int totalElements) { return pageSize > 0 ? (int) Math.ceil(totalElements / (double) pageSize) : 0; } private  PageUtils(); static PageResponse getPageResponse(int pageSize, int offset, int total); static int getTotalPages(int pageSize, int totalElements); }
PageUtils { public static int getTotalPages(int pageSize, int totalElements) { return pageSize > 0 ? (int) Math.ceil(totalElements / (double) pageSize) : 0; } private  PageUtils(); static PageResponse getPageResponse(int pageSize, int offset, int total); static int getTotalPages(int pageSize, int totalElements); static final String PAGE_QUERY_PARAMETER_NAME; }