Package com.ccprog3.coffee
Class CustomSpecialCoffee
java.lang.Object
com.ccprog3.coffee.Coffee
com.ccprog3.coffee.SpecialCoffee
com.ccprog3.coffee.CustomSpecialCoffee
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCustomSpecialCoffee
(CoffeeType type, Ingredient cup, int ratio, SyrupIngredient[] syrups, Espresso[] shots) Constructor forSpecialCoffee
with custom brew ratio -
Method Summary
Modifier and TypeMethodDescriptionGets the Ingredients required to make theEspresso
Methods inherited from class com.ccprog3.coffee.SpecialCoffee
getAllIngredients, getEspresso, getShotIngredients, getShots, getSyrupIngredients, getSyrups, toString
Methods inherited from class com.ccprog3.coffee.Coffee
getCup, getIngredients, getType
-
Constructor Details
-
CustomSpecialCoffee
public CustomSpecialCoffee(CoffeeType type, Ingredient cup, int ratio, SyrupIngredient[] syrups, Espresso[] shots) throws IllegalArgumentException Constructor forSpecialCoffee
with custom brew ratio- Parameters:
type
- Type ofCoffee
cup
- Cup sizeratio
- Custom brew ratio of water to coffee beans (ex. 2 = 1:2)syrups
- Syrup addonsshots
- Extra shots- Throws:
IllegalArgumentException
-Ingredient
is not a Cup
-
-
Method Details
-
getEspressoIngredients
Description copied from class:Coffee
Gets the Ingredients required to make theEspresso
- Overrides:
getEspressoIngredients
in classSpecialCoffee
- Returns:
- Map of Ingredients and quantities
-