?? datapackage.java
字號:
package cn.myapps.base.dao;
import java.io.Serializable;
import java.util.Collection;
/**
* Data package, usually use in the list.
*/
public class DataPackage implements Serializable {
private static final long serialVersionUID = -3847321538691386074L;
public int rowCount;
public int linesPerPage;
public int pageNo;
public Collection datas;
/**
* @return Returns the datas.
*/
public Collection getDatas() {
return datas;
}
/**
* @param datas The datas to set.
*/
public void setDatas(Collection datas) {
this.datas = datas;
}
/**
* @return Returns the linesPerPage.
*/
public int getLinesPerPage() {
return linesPerPage;
}
/**
* @param linesPerPage The linesPerPage to set.
*/
public void setLinesPerPage(int linesPerPage) {
this.linesPerPage = linesPerPage;
}
/**
* @return Returns the pageNo.
*/
public int getPageNo() {
return pageNo;
}
/**
* @param pageNo The pageNo to set.
*/
public void setPageNo(int pageNo) {
this.pageNo = pageNo;
}
/**
* @return Returns the rowCount.
*/
public int getRowCount() {
return rowCount;
}
/**
* @param rowCount The rowCount to set.
*/
public void setRowCount(int rowCount) {
this.rowCount = rowCount;
}
/**
* Return the total page number
* @return The total page number.
*/
public int getPageCount() {
return (int) Math.ceil((double) rowCount / (double) linesPerPage);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -