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 +
'}';
}
}

最新文章

  1. [PHP源码阅读]array_pop和array_shift函数
  2. 【推荐】MySQL Cluster报错及解决方法(不断更新中)
  3. spring中的bean
  4. 使用HttpClient发送数据 到WebApi
  5. eclipse中LogCat有时不显示信息的简单解决办法
  6. 慕课网-安卓工程师初养成-2-9 Java中的自动类型转换
  7. VS2008下使用 CMFCPropertyGridCtrl 转载
  8. [Unity3D]Unity3D游戏开发之在3D场景中选择物体并显示轮廓效果
  9. 在Mac OS X中使用VIM开发STM32(4)
  10. C语言预处理运算符
  11. Quartz 之 windowService
  12. rel=nofollow 是什么意思
  13. JavaScript 系列笔记(一)数据类型
  14. HDU字符串基础题(1020,1039,1062,1088,1161,1200,2017)
  15. EJB相关的面试题
  16. 001_Go hello world
  17. python计算文件的行数的方法
  18. Linux安装Gitlab,附iSCSI分区挂载说明
  19. Leetcode刷题第001天
  20. Vue.js中滚动条加载更多数据

热门文章

  1. 开源支持东财自动交易的简单量化交易框架pytrader
  2. IntelliJ IDEA 的 Bean validation 里有什么用
  3. 我罗斯方块第二次作业(Block类)
  4. git修改用户和邮箱
  5. 【Java面试题】-- Java String
  6. 解决:ElasticsearchException[X-Pack is not supported and Machine Learning is not available for
  7. Sentry 监控 - Snuba 数据中台本地开发环境配置实战
  8. SPOJ 1557 GSS2 - Can you answer these queries II (线段树+维护历史最值)
  9. Codeforces 1383C - String Transformation 2(找性质+状压 dp)
  10. Codeforces 739C - Alyona and towers(线段树)