T
- This describes my type parameterpublic class Page<T>
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
PAGE_NAME
分页模型在 Request 中的固定名称
|
static int |
PAGE_SIZE
每页显示的个数
|
构造器和说明 |
---|
Page() |
Page(int pageSize,
int pageNo,
int totalCount) |
Page(int pageSize,
int pageNo,
int totalCount,
double totalPrice) |
限定符和类型 | 方法和说明 |
---|---|
int |
getEndIndex() |
int |
getFromIndex() |
int |
getNext() |
int |
getPageNo() |
int |
getPageSize() |
int |
getPrev() |
java.util.List<T> |
getResults() |
java.util.List<T> |
getResults1() |
int |
getTotalCount() |
int |
getTotalPageNo() |
double |
getTotalPrice() |
boolean |
isHasNext() |
boolean |
isHasPrev() |
void |
setResults(java.util.List<T> results) |
void |
setResults1(java.util.List<T> results1) |
public static final java.lang.String PAGE_NAME
public static final int PAGE_SIZE
public Page()
public Page(int pageSize, int pageNo, int totalCount)
public Page(int pageSize, int pageNo, int totalCount, double totalPrice)
public void setResults1(java.util.List<T> results1)
public int getPageNo()
public int getPageSize()
public int getTotalPageNo()
public int getTotalCount()
public double getTotalPrice()
public java.util.List<T> getResults()
public java.util.List<T> getResults1()
public int getFromIndex()
public int getEndIndex()
public void setResults(java.util.List<T> results)
public boolean isHasPrev()
public boolean isHasNext()
public int getPrev()
public int getNext()