|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.xiaoleilu.hutool.PageUtil
public class PageUtil
分页工具类
| 构造方法摘要 | |
|---|---|
PageUtil()
|
|
| 方法摘要 | |
|---|---|
static int |
totalPage(int totalCount,
int numPerPage)
根据总数计算总页数 |
static int[] |
transToStartEnd(int pageNo,
int countPerPage)
将页数和每页条目数转换为开始位置和结束位置 此方法用于不包括结束位置的分页方法 例如: 页码:1,每页10 -> [0, 10] 页码:2,每页10 -> [10, 20] 。。。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public PageUtil()
| 方法详细信息 |
|---|
public static int[] transToStartEnd(int pageNo,
int countPerPage)
pageNo - 页码(从1计数)countPerPage - 每页条目数
public static int totalPage(int totalCount,
int numPerPage)
totalCount - 总数numPerPage - 每页数
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||