com.telewave.logger.page.PageResult Maven / Gradle / Ivy
package com.telewave.logger.page;
/**
* Created by aiowang on 2018/7/26.
*/
import java.io.Serializable;
import java.util.List;
public class PageResult implements Serializable {
private static final long serialVersionUID = -1750386840274995765L;
private long total; // 总记录数
private List rows; // 查询出的结果数
public PageResult() {
super();
}
public PageResult(long total, List rows) {
super();
this.total = total;
this.rows = rows;
}
@Override
public String toString() {
return "PageResult [total=" + total + ", rows=" + rows + "]";
}
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
public List> getRows() {
return rows;
}
public void setRows(List rows) {
this.rows = rows;
}
}