|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecteShopper.Ingredient
This is an Ingredient that is in the database, but doesn't need the information associated with being in a recipe or a shopping list.
| Constructor Summary | |
Ingredient(int ID,
java.lang.String name)
|
|
| Method Summary | |
int |
getID()
This is a getter method for the IngredientID. |
java.lang.String |
getName()
This is a getter method for the ingredient's name. |
void |
setName(java.lang.String newName)
This sets the Ingredient's name to the given name. |
java.lang.String |
toString()
This implements the toString method and returns the name of the ingredient. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Ingredient(int ID,
java.lang.String name)
| Method Detail |
public int getID()
public java.lang.String getName()
public void setName(java.lang.String newName)
newName - The name the Ingredient should have.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||