pageBean的实体类
2024-10-19 17:43:05
package com.hopetesting.domain;
import java.util.List;
/**
* @author newcityman
* @date 2019/9/7 - 19:19
*/
public class PageBean<T>{
private int totalCount; //总记录数
private int totalPage; //总页码
private int rows; //每页显示的记录数
private int currentPage; //当前页
private List<T> list; //每页的数据
public PageBean() {
}
public PageBean(int totalCount, int totalPage, int rows, int currentPage, List<T> list) {
this.totalCount = totalCount;
this.totalPage = totalPage;
this.rows = rows;
this.currentPage = currentPage;
this.list = list;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public int getRows() {
return rows;
}
public void setRows(int rows) {
this.rows = rows;
}
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public List<T> getList() {
return list;
}
public void setList(List<T> list) {
this.list = list;
}
@Override
public String toString() {
return "PageBean{" +
"totalCount=" + totalCount +
", totalPage=" + totalPage +
", rows=" + rows +
", currentPage=" + currentPage +
", list=" + list +
'}';
}
}
最新文章
- [PHP源码阅读]array_pop和array_shift函数
- 【推荐】MySQL Cluster报错及解决方法(不断更新中)
- spring中的bean
- 使用HttpClient发送数据 到WebApi
- eclipse中LogCat有时不显示信息的简单解决办法
- 慕课网-安卓工程师初养成-2-9 Java中的自动类型转换
- VS2008下使用 CMFCPropertyGridCtrl 转载
- [Unity3D]Unity3D游戏开发之在3D场景中选择物体并显示轮廓效果
- 在Mac OS X中使用VIM开发STM32(4)
- C语言预处理运算符
- Quartz 之 windowService
- rel=nofollow 是什么意思
- JavaScript 系列笔记(一)数据类型
- HDU字符串基础题(1020,1039,1062,1088,1161,1200,2017)
- EJB相关的面试题
- 001_Go hello world
- python计算文件的行数的方法
- Linux安装Gitlab,附iSCSI分区挂载说明
- Leetcode刷题第001天
- Vue.js中滚动条加载更多数据
热门文章
- 开源支持东财自动交易的简单量化交易框架pytrader
- IntelliJ IDEA 的 Bean validation 里有什么用
- 我罗斯方块第二次作业(Block类)
- git修改用户和邮箱
- 【Java面试题】-- Java String
- 解决:ElasticsearchException[X-Pack is not supported and Machine Learning is not available for
- Sentry 监控 - Snuba 数据中台本地开发环境配置实战
- SPOJ 1557 GSS2 - Can you answer these queries II (线段树+维护历史最值)
- Codeforces 1383C - String Transformation 2(找性质+状压 dp)
- Codeforces 739C - Alyona and towers(线段树)