public class ProductGroup
extends java.lang.Object
| Constructor and Description |
|---|
ProductGroup()
The default ctor
|
ProductGroup(java.lang.String name)
Create a new product group
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProduct(ProductType product)
Add a product to the group
|
boolean |
equals(java.lang.Object o)
See if this equals another
|
java.util.List<ProductType> |
getProductTypes()
Get the list of products in this group
|
static void |
main(java.lang.String[] args)
Test this
|
java.lang.String |
toString()
Get a String representation
|
public ProductGroup()
public ProductGroup(java.lang.String name)
name - the name of the grouppublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the otherpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - the filejava.lang.Exception - problempublic void addProduct(ProductType product)
product - the product to addpublic java.util.List<ProductType> getProductTypes()
public java.lang.String toString()
toString in class java.lang.Object