fix: re-order Ingredient constructor

This commit is contained in:
2022-09-28 14:20:12 -05:00
parent 9b03671e49
commit 8d1ef61699

View File

@@ -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;