PageResult

PageResult.java

 1 package com.yy.core.pojo.entity;
 2 
 3 import java.io.Serializable;
 4 import java.util.List;
 5 
 6 public class PageResult implements Serializable {
 7 
 8     private long total; //总记录数
 9     private List rows; //当前页结果
10 
11     public PageResult(long total, List rows){
12         super();
13         this.total = total;
14         this.rows = rows;
15     }
16 
17     public long getTotal() {
18         return total;
19     }
20 
21     public void setTotal(long total) {
22         this.total = total;
23     }
24 
25     public List getRows() {
26         return rows;
27     }
28 
29     public void setRows(List rows) {
30         this.rows = rows;
31     }
32 }
原文地址:https://www.cnblogs.com/lifefamily/p/11890289.html