Package com.ccprog3.coffeeTruck
Class SpecialStorageBin
java.lang.Object
com.ccprog3.coffeeTruck.StorageBin
com.ccprog3.coffeeTruck.SpecialStorageBin
- All Implemented Interfaces:
Serializable
Special Storage Bin class to contain Syrup Ingredients
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpecialStorageBin
(SyrupIngredient syrupIngredient, double quantity) SpecialStorageBin
constructor -
Method Summary
Methods inherited from class com.ccprog3.coffeeTruck.StorageBin
addQuantity, getIngredient, getQuantity
-
Constructor Details
-
SpecialStorageBin
public SpecialStorageBin(SyrupIngredient syrupIngredient, double quantity) throws ArithmeticException SpecialStorageBin
constructor- Parameters:
syrupIngredient
-SyrupIngredient
type storedquantity
- Amount of theIngredient
- Throws:
ArithmeticException
- Quantity is negative or over the max capacity
-
-
Method Details
-
toString
- Overrides:
toString
in classStorageBin
-
getSyrupIngredient
Gets theSyrupIngredient
stored- Returns:
- The
SyrupIngredient
stored
-