|
|
|
@ -14,11 +14,11 @@ public class Ingredient { |
|
|
|
private int amount; |
|
|
|
|
|
|
|
/** |
|
|
|
* Creates an ingredient of the given name, unit, and amount |
|
|
|
* Creates an ingredient of the given name, amount, and unit |
|
|
|
* |
|
|
|
* @param iname The name of the ingredient |
|
|
|
* @param iunits The unit of measurement for the ingredient |
|
|
|
* @param iamount The amount of the ingredient (in given unit) |
|
|
|
* @param iunits The unit of measurement for the ingredient |
|
|
|
*/ |
|
|
|
public Ingredient(String iname, int iamount, String iunits) { |
|
|
|
name = iname; |
|
|
|
@ -66,7 +66,7 @@ public class Ingredient { |
|
|
|
* Set the amount of the ingredient. |
|
|
|
* |
|
|
|
* @param iamount The new amount of the ingredient. |
|
|
|
* @param iunits The new unit of measurement for the ingredient. |
|
|
|
* @param iunits The new unit of measurement for the ingredient. |
|
|
|
*/ |
|
|
|
public void setAmount(int iamount, String iunits) { |
|
|
|
amount = iamount; |
|
|
|
|