E - 结果类型public class PagerResult<E> extends Object
---resources -----|--META-INF -----|----services -----|------org.hswebframework.web.api.crud.entity.PagerResult
| 构造器和说明 |
|---|
PagerResult() |
PagerResult(int total,
List<E> data) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> PagerResult<E> |
empty()
创建一个空结果
|
static <E> PagerResult<E> |
of(int total,
List<E> list)
创建一个分页结果
|
static <E> PagerResult<E> |
of(int total,
List<E> list,
org.hswebframework.ezorm.core.param.QueryParam entity)
创建一个分页结果,并将查询参数中的分页索引等信息填充到分页结果中
|
public static <E> PagerResult<E> empty()
E - 结果类型public static <E> PagerResult<E> of(int total, List<E> list)
E - 结果类型total - 总数据量list - 当前页数据列表public static <E> PagerResult<E> of(int total, List<E> list, org.hswebframework.ezorm.core.param.QueryParam entity)
E - 结果类型total - 总数据量list - 当前页数据列表entity - 查询参数Copyright © 2016–2023. All rights reserved.