public class Page<T> extends Object implements Serializable
Constructor and Description |
---|
Page() |
Page(List<T> list,
int pageNumber,
int pageSize,
int totalPage,
int totalRow)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
getList()
Return list of this page.
|
int |
getPageNumber()
Return page number.
|
int |
getPageSize()
Return page size.
|
int |
getTotalPage()
Return total page.
|
int |
getTotalRow()
Return total row.
|
boolean |
isFirstPage() |
boolean |
isLastPage() |
String |
toString() |
public Page(List<T> list, int pageNumber, int pageSize, int totalPage, int totalRow)
list
- the list of paginate resultpageNumber
- the page numberpageSize
- the page sizetotalPage
- the total page of paginatetotalRow
- the total row of paginatepublic Page()
public int getPageNumber()
public int getPageSize()
public int getTotalPage()
public int getTotalRow()
public boolean isFirstPage()
public boolean isLastPage()
Copyright © 2018. All rights reserved.