Uses of Class
stud.ntnu.idatt1005.pantrypal.models.Grocery
Packages that use Grocery
Package
Description
-
Uses of Grocery in stud.ntnu.idatt1005.pantrypal.controllers
Methods in stud.ntnu.idatt1005.pantrypal.controllers that return GroceryModifier and TypeMethodDescriptionGrocery[]
PantryController.getGroceries
(Shelf shelf) Returns all groceries from the specified shelf.Methods in stud.ntnu.idatt1005.pantrypal.controllers with parameters of type GroceryModifier and TypeMethodDescriptionvoid
ShoppingListController.addGrocery
(Grocery grocery) Adds a grocery to the register.void
PantryController.deleteGrocery
(Shelf shelf, Grocery grocery) Removes the grocery item from the shelf.private void
ShoppingListController.removeGrocery
(Grocery grocery) Removes a grocery from the register. -
Uses of Grocery in stud.ntnu.idatt1005.pantrypal.models
Methods in stud.ntnu.idatt1005.pantrypal.models that return types with arguments of type GroceryModifier and TypeMethodDescriptionShelf.getGroceries()
Gets the map of groceries in the register of the shelf.Methods in stud.ntnu.idatt1005.pantrypal.models with parameters of type GroceryModifier and TypeMethodDescriptionvoid
Shelf.addGrocery
(Grocery grocery) Adds a grocery item to the shelf.void
Shelf.removeGrocery
(Grocery grocery) Removes a grocery item from the shelf.Constructors in stud.ntnu.idatt1005.pantrypal.models with parameters of type Grocery -
Uses of Grocery in stud.ntnu.idatt1005.pantrypal.registers
Methods in stud.ntnu.idatt1005.pantrypal.registers that return GroceryModifier and TypeMethodDescriptionGrocery[]
ShelfRegister.getAllGroceries()
Returns all groceries from all shelves in the register.GroceryRegister.getGrocery
(String name) Get a grocery from the register.Methods in stud.ntnu.idatt1005.pantrypal.registers with parameters of type GroceryModifier and TypeMethodDescriptionvoid
GroceryRegister.addGrocery
(Grocery grocery) Add a grocery to the register.void
GroceryRegister.removeGrocery
(Grocery grocery) Remove a grocery from the register. -
Uses of Grocery in stud.ntnu.idatt1005.pantrypal.views.components
Fields in stud.ntnu.idatt1005.pantrypal.views.components declared as GroceryModifier and TypeFieldDescriptionprivate final Grocery
GroceryListElement.grocery
private final Grocery
GroceryListElement.GroceryListElementBuilder.grocery
Constructors in stud.ntnu.idatt1005.pantrypal.views.components with parameters of type GroceryModifierConstructorDescriptionGroceryListElementBuilder
(Grocery grocery) Constructor for the GroceryListElementBuilder.