public final class Products
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Products |
EMPTY |
private int |
page |
private java.util.List<Product> |
products |
private int |
resultsPerPage |
private int |
size |
Constructor and Description |
---|
Products() |
Modifier and Type | Method and Description |
---|---|
int |
getPage()
The current page number
|
java.util.List<Product> |
getProducts()
List of found products, which has the maximum size 'resultsPerPage'.
|
int |
getResultsPerPage()
The number of search-results per page.
|
int |
getSize()
The number of found products.
|
void |
setPage(int page) |
void |
setProducts(java.util.List<Product> products) |
void |
setResultsPerPage(int resultsPerPage) |
void |
setSize(int size) |
public static final Products EMPTY
private int size
private int page
private int resultsPerPage
private java.util.List<Product> products
public void setSize(int size)
public int getSize()
public java.util.List<Product> getProducts()
public void setProducts(java.util.List<Product> products)
public void setPage(int page)
public int getPage()
public void setResultsPerPage(int resultsPerPage)
public int getResultsPerPage()