public class ProductList extends Object
| Constructor and Description |
|---|
ProductList()
Create a new productlist.
|
ProductList(Product[] products)
Create a new productlist.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProduct(Product product)
Add a product.
|
boolean |
equals(Object obj)
Test if an object is equal to this object.
|
String |
getName()
Get the name.
|
Product[] |
getProducts()
Get all products.
|
int |
hashCode()
Get the hash code.
|
void |
setName(String name)
Set the name.
|
void |
setProducts(Product[] products)
Set the productlist.
|
String |
toString()
Get the string representation.
|
public ProductList()
public ProductList(Product[] products)
public String getName()
public void setName(String name)
name - The name to set.public void addProduct(Product product)
product - The product.public Product[] getProducts()
public void setProducts(Product[] products)
productlist - The productlist to set.public int hashCode()
public boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.