Uses of Class
no.ntnu.idatt1002.demo.data.recipes.RecipeIngredient
Packages that use RecipeIngredient
-
Uses of RecipeIngredient in no.ntnu.idatt1002.demo.controller
Methods in no.ntnu.idatt1002.demo.controller with parameters of type RecipeIngredientModifier and TypeMethodDescriptionvoid
IngredientTileController.setData
(RecipeIngredient ingredient) The setData method takes an RecipeIngredient object as parameter and sets the text of the label contained in the simple pane to a formatted string following this pattern: "# Ingredient name XX.X YY" where XX.X is the amount of the ingredient in the recipe and YY is the unit of measure. -
Uses of RecipeIngredient in no.ntnu.idatt1002.demo.data.recipes
Methods in no.ntnu.idatt1002.demo.data.recipes that return RecipeIngredientModifier and TypeMethodDescriptionRecipe.getIngredient
(FoodItem ingredientType) The method takes in a constant of the FoodItem enum class and searches for it among the recipe's ingredients.Methods in no.ntnu.idatt1002.demo.data.recipes that return types with arguments of type RecipeIngredientModifier and TypeMethodDescriptionRecipe.getIngredientList()
The method returns the list of RecipeIngredients that the recipe consists of.Method parameters in no.ntnu.idatt1002.demo.data.recipes with type arguments of type RecipeIngredientModifier and TypeMethodDescriptionstatic StringBuilder
FileHandler.formatIngredientList
(List<RecipeIngredient> ingredientList) The method supports the 'formatRecipe' method by receiving a list of ingredient objects and returning a String at the correct format for the writing to file.