public class Page<T> extends Object
| Constructor and Description |
|---|
Page()
构造函数
|
Page(int start,
int limit,
int total,
List<T> results)
构造函数
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLimit()
Gets the value of limit
|
List<T> |
getResults()
Gets the value of results
|
int |
getStart()
Gets the value of start
|
int |
getTotal()
Gets the value of total
|
void |
setLimit(int limit)
Sets the limit
|
void |
setResults(List<T> results)
Sets the results
|
void |
setStart(int start)
Sets the start
|
void |
setTotal(int total)
Sets the total
|
public Page(int start,
int limit,
int total,
List<T> results)
start - 开始位置limit - 条数total - 总条数results - 结果public Page()
public int getStart()
public void setStart(int start)
You can use getStart() to get the value of start
start - startpublic int getLimit()
public void setLimit(int limit)
You can use getLimit() to get the value of limit
limit - limitpublic int getTotal()
public void setTotal(int total)
You can use getTotal() to get the value of total
total - totalCopyright © 2020 IBIT程序猿. All rights reserved.