public class PageList<T>
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PageList() |
PageList(int pageNo,
int pageSize) |
PageList(int pageNo,
int pageSize,
int totalSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(T t)
항목을 추가한다.
|
int |
getCount()
현재 담고 있는 목록의 항목 수(전체 항목 수가 아니라)를 돌려 준다.
|
int |
getLastPageNo()
마지막 페이지 번호를 얻는다.
|
java.util.List<T> |
getList()
이 페이지 객체에 속한 List 목록을 돌려 준다.
|
int |
getPageNo() |
int |
getPageSize() |
int |
getTotalCount() |
void |
setList(java.util.List<T> list) |
void |
setPageNo(int pageNo) |
void |
setPageSize(int pageSize) |
void |
setTotalCount(int totalCount) |
public PageList()
public PageList(int pageNo, int pageSize)
public PageList(int pageNo, int pageSize, int totalSize)
public int getPageNo()
public void setPageNo(int pageNo)
pageNo
- the pageNo to setpublic int getPageSize()
public void setPageSize(int pageSize)
pageSize
- the pageSize to setpublic int getTotalCount()
public void setTotalCount(int totalCount)
totalCount
- the totalSize to setpublic java.util.List<T> getList()
이 페이지 객체에 속한 List 목록을 돌려 준다.
Element가 없는 빈 List라도 돌려주며, List는 Unmodifieable임을 주의한다.
public void setList(java.util.List<T> list)
list
- the list to setpublic void add(T t)
t
- 추가할 항목.public int getLastPageNo()
public int getCount()