MCPcopy Create free account
hub / github.com/LisenCoding/cangku / PageUtils

Method PageUtils

boot/src/main/java/com/utils/PageUtils.java:33–39  ·  view source on GitHub ↗

分页 @param list 列表数据 @param totalCount 总记录数 @param pageSize 每页记录数 @param currPage 当前页数

(List<?> list, int totalCount, int pageSize, int currPage)

Source from the content-addressed store, hash-verified

31 * @param currPage 当前页数
32 */
33 public PageUtils(List<?> list, int totalCount, int pageSize, int currPage) {
34 this.list = list;
35 this.total = totalCount;
36 this.pageSize = pageSize;
37 this.currPage = currPage;
38 this.totalPage = (int)Math.ceil((double)totalCount/pageSize);
39 }
40
41 /**
42 * 分页

Callers

nothing calls this directly

Calls 2

getTotalMethod · 0.80
getPageMethod · 0.45

Tested by

no test coverage detected