src/com/oa/utils/PageInfo.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.oa.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class PageInfo {
public PageInfo() {
}
/* public PageInfo(int curpage,int pagerecord,int allrecord)
{
this.curpage=curpage;
this.pagerecord=pagerecord;
this.allrecord=allrecord;
this.allpage=(allrecord+pagerecord-1)/pagerecord;
}*/
public PageInfo(int curpage,int pagerecord,int allrecord,List pageData)
{
this.currentpage=curpage;
this.pageunit=pagerecord;
this.totlerecords=allrecord;
int num =(allrecord+pagerecord-1)/pagerecord;
this.pagenum=num;
this.datas=pageData;
}
public PageInfo(int currentpage, int pageunit, int totlerecords, String url, List datas) {
this.currentpage = currentpage;
this.pageunit = pageunit;
this.totlerecords = totlerecords;
this.url = url;
this.nextpage = this.currentpage + 1;
this.prepage = this.currentpage - 1;
int num = (totlerecords + pageunit -1)/pageunit;
if(num==0){
num = 1;
}
this.pagenum = num;
this.datas = datas;
}
private Map<String,String> condition; //鏌ヨ鏉′欢
private int currentpage; //褰撳墠椤?
private int pageunit; //鍒嗛〉鍗曚綅
private int totlerecords; //鎬昏褰曟暟
private int pagenum; //鎬婚〉鏁?
private int prepage; //涓婁竴椤?
private int nextpage; //涓嬩竴椤?
private String url;
private List datas;
后面还有 84 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。