package util;
import java.util.List;
public class PageManager
{
private List allRecords = null;//collection储存同一类型的对象的集合
private int currentPage = 0;//当前页码
private int totalPage = 0;//总页数
private int recordPerPage = -1;//每页的对象数
private int totalCount=0;//总的对象数
//初始化
public PageManager(List allRecords, int recordPerPage)
{
if (allRecords == null || recordPerPage < 1) return;
this.allRecords = allRecords;
this.recordPerPage = recordPerPage;
this.totalCount=allRecords.size();
if (allRecords.size() % recordPerPage == 0)
&nb