public class PageUtils extends Object implements Serializable
Constructor and Description |
---|
PageUtils(List<?> list,
int totalCount,
int pageSize,
int currPage)
分页
|
PageUtils(com.github.pagehelper.PageInfo pageInfo) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrPage() |
List<?> |
getList() |
int |
getPageSize() |
int |
getTotalCount() |
int |
getTotalPage() |
void |
setCurrPage(int currPage) |
void |
setList(List<?> list) |
void |
setPageSize(int pageSize) |
void |
setTotalCount(int totalCount) |
void |
setTotalPage(int totalPage) |
public PageUtils(List<?> list, int totalCount, int pageSize, int currPage)
list
- 列表数据totalCount
- 总记录数pageSize
- 每页记录数currPage
- 当前页数public PageUtils(com.github.pagehelper.PageInfo pageInfo)
public int getTotalCount()
public void setTotalCount(int totalCount)
public int getPageSize()
public void setPageSize(int pageSize)
public int getTotalPage()
public void setTotalPage(int totalPage)
public int getCurrPage()
public void setCurrPage(int currPage)
public List<?> getList()
public void setList(List<?> list)
Copyright © 2021. All rights reserved.