类 DefaultPage<T>
- java.lang.Object
-
- org.apache.dubbo.common.utils.DefaultPage<T>
-
- 所有已实现的接口:
Serializable
,Page<T>
public class DefaultPage<T> extends Object implements Page<T>, Serializable
The default implementation ofPage
- 从以下版本开始:
- 2.7.5
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 DefaultPage(int requestOffset, int pageSize, List<T> data, int totalSize)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<T>
getData()
The data of current pageint
getOffset()
Gets the offset of requestint
getPageSize()
Gets the size of request for pagination queryint
getTotalPages()
Get the number of total pages.int
getTotalSize()
Gets the total amount of elements.boolean
hasNext()
It indicates has next page or not-
从接口继承的方法 org.apache.dubbo.common.utils.Page
getDataSize, hasData
-
-
-
-
方法详细资料
-
getOffset
public int getOffset()
从接口复制的说明:Page
Gets the offset of request
-
getPageSize
public int getPageSize()
从接口复制的说明:Page
Gets the size of request for pagination query- 指定者:
getPageSize
在接口中Page<T>
- 返回:
- positive integer
-
getTotalSize
public int getTotalSize()
从接口复制的说明:Page
Gets the total amount of elements.- 指定者:
getTotalSize
在接口中Page<T>
- 返回:
- the total amount of elements
-
getTotalPages
public int getTotalPages()
从接口复制的说明:Page
Get the number of total pages.- 指定者:
getTotalPages
在接口中Page<T>
- 返回:
- the number of total pages.
-
-