81,091
社区成员
发帖
与我相关
我的任务
分享
public void setTotalCount(int totalCount) {
if (totalCount>0) {
this.totalCount=totalCount;
int iPageCount=totalCount/ipageSize;
if (totalCount%ipageSize>0) {
iPageCount++;
}
indexes=new int[iPageCount];
for (int i=0;i<iPageCount;i++) {
indexes[i]=ipageSize*i;
}
} else {
this.totalCount=0;
}
}