| 构造器和说明 |
|---|
PageImpl(int pageSize,
int pageNo) |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<T> |
getEntities()
返回当页数据。
|
int |
getEntityCount()
设置总记录数。
|
int |
getFirstEntityIndex()
返回当前页中第一条记录对应的序号,该序号是从0开始计算的。
|
int |
getLastEntityIndex()
返回当前页中最后一条记录对应的序号,该序号是从0开始计算的。
|
int |
getPageCount()
返回总的记录页数。
|
int |
getPageNo()
返回要提取的页的序号,该序号是从1开始计算的。
|
int |
getPageSize()
返回每一页的大小,即每页的记录数。
|
Iterator<T> |
iterator()
返回当页数据的迭代器。
|
void |
setEntities(Collection<T> entities)
设置当页数据。
|
void |
setEntityCount(int entityCount)
返回总记录数。
|
public int getPageSize()
getPageSize 在接口中 IPage<T>public int getFirstEntityIndex()
getFirstEntityIndex 在接口中 IPage<T>public int getLastEntityIndex()
getLastEntityIndex 在接口中 IPage<T>public void setEntities(Collection<T> entities)
setEntities 在接口中 IPage<T>public Collection<T> getEntities()
getEntities 在接口中 IPage<T>public int getEntityCount()
此处的总记录数并不是指当页数据的总数,而是指整个结果的总数。 即每一页数据累计的总数。
getEntityCount 在接口中 IPage<T>public void setEntityCount(int entityCount)
此处的总记录数并不是指当页数据的总数,而是指整个结果的总数。即每一页数据累计的总数。
setEntityCount 在接口中 IPage<T>public int getPageCount()
getPageCount 在接口中 IPage<T>Copyright © 2016. All rights reserved.