Package com.imyeyu.java.bean
Class BasePageResult<T>
java.lang.Object
com.imyeyu.java.bean.BasePageResult<T>
分页结果
- Since:
- 2025-07-25 11:04
- Author:
- 夜雨
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
total
protected long total总数据量 -
pages
protected int pages总页数 -
list
分页数据列表
-
-
Constructor Details
-
BasePageResult
public BasePageResult()
-
-
Method Details
-
isEmpty
public boolean isEmpty()结果是否为空- Returns:
- true 为空
-
isNotEmpty
public boolean isNotEmpty()结果是否非空- Returns:
- true 为非空
-
setTotal
public void setTotal(long total) 设置总数据量- Parameters:
total- 总数据量
-
setList
设置分页数据列表- Parameters:
list- 分页数据列表
-
getTotal
public long getTotal()总数据量 -
getPages
public int getPages()总页数 -
getList
分页数据列表 -
setPages
public void setPages(int pages) 总页数 -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-