java分页page类

import java.util.ArrayList;
import java.util.List;

public class PageInfo<T> {
	
	private int totalpage;//总页数
	private List<T> list=new ArrayList<T>();//每页显示集合
	private int totalrecord;//总条数
	public int getTotalpage() {
		return totalpage;
	}
	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public int getTotalrecord() {
		return totalrecord;
	}
	public void setTotalrecord(int totalrecord) {
		this.totalrecord = totalrecord;
	}
}

你可能感兴趣的:(java,pageinfo)