Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
GroceryMatch.calcMaxNumServing(Recipe recipe)
Calculate what is the maximum number of servings of this recipe using current GroceryList.
|
void |
GroceryMatch.reportShortage(Recipe recipe,
java.lang.Integer numOfServing)
This method is call when the desired number of servings is greater than
maximum possible number of servings.
|
void |
GroceryMatch.updateGroceries(Recipe recipe,
java.lang.Integer numOfServing)
Reduce the quantities in GroceryList since you have used them for serving.
|