package class6_3_InnerDecoratorChallengeRecipe_withProblem_start; /** * A line in a recipe's ingredients list */ public class Ingredient { private String name; private double quantity; private String unit; /** * Construct a new Recipe item * @param name The description of the ingredient (e.g. flour, water) * @param quantity The amount of the ingredient * @param unit The units (e.g. cups, teaspoons, etc.) */ public Ingredient(String name, double quantity, String unit) { this.name = name; this.quantity = quantity; this.unit = unit; } public String getName() { return name; } public void setName(String name) { this.name = name; } public double getQuantity() { return quantity; } public void setQuantity(double quantity) { this.quantity = quantity; } public String getUnit() { return unit; } public void setUnit(String unit) { this.unit = unit; } }