Constructor and Description |
---|
ProductPage()
Default Constructor
|
ProductPage(int pageNum,
int totalPages,
int pageSize,
List<Product> pageProducts) |
Modifier and Type | Method and Description |
---|---|
static ProductPage |
blankPage() |
long |
getNumOfHits() |
int |
getPageNum() |
List<Product> |
getPageProducts() |
int |
getPageSize() |
int |
getTotalPages() |
boolean |
isFirstPage() |
boolean |
isLastPage() |
void |
setNumOfHits(long numOfHits) |
void |
setPageNum(int pageNum) |
void |
setPageProducts(List<Product> pageProducts) |
void |
setPageSize(int pageSize) |
void |
setTotalPages(int totalPages) |
public int getPageNum()
public void setPageNum(int pageNum)
pageNum
- The pageNum to set.public void setPageProducts(List<Product> pageProducts)
pageProducts
- The pageProducts to set.public int getPageSize()
public void setPageSize(int pageSize)
pageSize
- The pageSize to set.public int getTotalPages()
public void setTotalPages(int totalPages)
totalPages
- The totalPages to set.public boolean isLastPage()
public boolean isFirstPage()
public long getNumOfHits()
public void setNumOfHits(long numOfHits)
numOfHits
- the numOfHits to setpublic static ProductPage blankPage()
ProductPage
.Copyright © 1999–2017 Apache OODT. All rights reserved.