Uses of Class
no.ntnu.idatt1002.demo.data.recipes.IngredientsAtHand
Packages that use IngredientsAtHand
-
Uses of IngredientsAtHand in no.ntnu.idatt1002.demo.data.recipes
Methods in no.ntnu.idatt1002.demo.data.recipes that return IngredientsAtHandModifier and TypeMethodDescriptionstatic IngredientsAtHand
FileHandler.readIngredientsAtHand
(String fileDestination) The method reads an IngredientsAtHand object from the .register file with the name provided as a parameter and stored at /main/recourses/recipes/.Methods in no.ntnu.idatt1002.demo.data.recipes with parameters of type IngredientsAtHandModifier and TypeMethodDescriptionRecipeRegister.pickBestFits
(int number, IngredientsAtHand atHand) The method takes in a number and an IngredientsAtHand object and returns an ArrayList containing that number of recipes that, based on the ingredients at hand, require the fewest extra ingredients apart from the ones at hand.void
Recipe.updateIngredientStatus
(IngredientsAtHand ingredientsAtHand) The method takes in an object of the IngredientsAtHand class which defines which foods the user has at hand.static void
FileHandler.writeIngredientsAtHand
(IngredientsAtHand ingredientsAtHand, String fileDestination) The method takes in an IngredientsAtHand object and writes it to a .register-file with the provided String as title.