zoukankan      html  css  js  c++  java
  • pageBean的实体类

    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 +
    '}';
    }
    }
  • 相关阅读:
    Python 十七天 成员
    python学习17——字典。
    python学习16——列表。
    python学习15——Random。
    python学习14——分支和函数。
    python学习13——while循环。
    python学习12——循环和列表
    python学习8——整理第一部分。
    Flask HTTP请求与响应
    Falsk 路由简析
  • 原文地址:https://www.cnblogs.com/newcityboy/p/11509649.html
Copyright © 2011-2022 走看看