类 Pageable
- java.lang.Object
-
- me.youm.boot.web.base.page.Pageable
-
public class Pageable extends java.lang.Object分 页 工 具- 作者:
- youta
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfacePageable.Record<T>内部类
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> java.util.List<T>of(java.util.List<T> records, int pageIndex, int pageSize)内存分页static <T> PageResponse<T>of(PageRequest request, java.util.List<T> records)内存分页static <T> PageResponse<T>of(PageRequest request, Pageable.Record record)物理分页
-
-
-
方法详细资料
-
of
public static <T> java.util.List<T> of(java.util.List<T> records, int pageIndex, int pageSize)内存分页- 类型参数:
T- type- 参数:
records- 待分页的数据pageIndex- 当前页码pageSize- 每页显示的条数- 返回:
- 分页数据
PageResponse
-
of
public static <T> PageResponse<T> of(PageRequest request, java.util.List<T> records)
内存分页- 类型参数:
T- type- 参数:
request- 分页参数records- 待分页的数据- 返回:
- 分页数据
PageResponse
-
of
public static <T> PageResponse<T> of(PageRequest request, Pageable.Record record)
物理分页- 类型参数:
T- type- 参数:
request- 分页参数record- records- 返回:
- 分页数据
PageResponse
-
-