PageResult.java 660 Bytes
package com.objecteye.entity;

import java.io.Serializable;
import java.util.List;

public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 3161527748709808462L;

    private long total;

    private List<T> row;

    public PageResult() {
    }

    public PageResult(long total, List<T> row) {
        this.total = total;
        this.row = row;
    }

    public long gettotal() {
        return total;
    }

    public void settotal(int total) {
        this.total = total;
    }

    public List<T> getRow() {
        return row;
    }

    public void setRow(List<T> row) {
        this.row = row;
    }
}