public class Choice extends CafetData
| Constructor and Description |
|---|
Choice() |
Choice(int id,
String name,
int formulaId,
Product[] choice) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProduct(Product product) |
void |
delete() |
boolean |
equals(Object obj) |
Formula |
getFormula()
Return the formula
|
int |
getId()
Return the id
|
String |
getName()
Return the name
|
Product[] |
getProducts()
Return the choice
|
int |
hashCode() |
void |
remove(Product product) |
void |
setName(String name)
Sets name
|
public int getId()
public String getName()
public Formula getFormula() throws APIException, IOException
IOExceptionAPIExceptionpublic Product[] getProducts()
public void addProduct(Product product) throws APIException, IOException
product - IOExceptionAPIExceptionpublic void remove(Product product) throws APIException, IOException
product - IOExceptionAPIExceptionpublic void setName(String name) throws APIException, IOException
name - the name to setIOExceptionAPIExceptionpublic void delete()
throws APIException,
IOException
IOExceptionAPIExceptionCopyright © 2019 Nowtryz. All rights reserved.