public class Pagination<T> extends Object
| 构造器和说明 |
|---|
Pagination() |
Pagination(int currentPage,
int totalPages,
long total,
List<T> rows) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCurrentPage() |
List<T> |
getRows() |
long |
getTotal() |
int |
getTotalPages() |
Pagination<T> |
setCurrentPage(int currentPage) |
Pagination<T> |
setRows(List<T> rows) |
Pagination<T> |
setTotal(long total) |
Pagination<T> |
setTotalPages(int totalPages) |
public long getTotal()
public Pagination<T> setTotal(long total)
public Pagination<T> setRows(List<T> rows)
public int getCurrentPage()
public Pagination<T> setCurrentPage(int currentPage)
public int getTotalPages()
public Pagination<T> setTotalPages(int totalPages)
totalPages - the totalPage to setCopyright © 2023. All rights reserved.