Package | Description |
---|---|
org.dromara.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
org.dromara.hutool.core.lang.page |
提供分页信息封装,主要包括:
PageInfo : 提供分页信息。 |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
ListUtil.page(List<T> list,
PageInfo pageInfo)
对指定List分页取值
|
Modifier and Type | Class and Description |
---|---|
class |
NavigatePageInfo
导航分页信息类
根据提供的总页数、每页记录数、导航页码数等信息,生成导航数组。 |
Modifier and Type | Method and Description |
---|---|
PageInfo |
PageInfo.nextPage()
下一页,即当前页码+1
当超过末页时,此方法指向的页码值始终为 getPageCount() + 1,即最后一页后的空白页。 |
static PageInfo |
PageInfo.of(int total,
int pageSize)
创建
PageInfo ,默认当前页是1 |
PageInfo |
PageInfo.previousPage()
上一页,即当前页码-1,直到第一页则始终为第一页
|
PageInfo |
PageInfo.setFirstPageNo(int firstPageNo)
|
PageInfo |
PageInfo.setPageNo(int pageNo)
设置当前页码,具体这个页码代表实际页,取决于
setFirstPageNo(int) 设置的值。 |
Copyright © 2025. All rights reserved.