|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.text.ProductGroup
public class ProductGroup
Holds a named group of products
| Constructor Summary | |
|---|---|
ProductGroup()
The default ctor |
|
ProductGroup(String name)
Create a new product group |
|
| Method Summary | |
|---|---|
void |
addProduct(ProductType product)
Add a product to the group |
boolean |
equals(Object o)
See if this equals another |
List<ProductType> |
getProductTypes()
Get the list of products in this group |
static void |
main(String[] args)
Test this |
String |
toString()
Get a String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProductGroup()
public ProductGroup(String name)
name - the name of the group| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objecto - the other
public static void main(String[] args)
throws Exception
args - the file
Exception - problempublic void addProduct(ProductType product)
product - the product to addpublic List<ProductType> getProductTypes()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||