Class Product
java.lang.Object
ntnu.idatt2016.v233.SmartMat.entity.product.Product
Product is an entity class representing a product in the system.
All other info about the product is fetched from api call on fronted.
this ensures that the product is always up to date.
- Version:
- 1.4
- Author:
- Birk, Anders, Pedro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllergy
(Allergy allergy) Adds an allergy to the productvoid
addFridge
(FridgeProductAsso fridge) Adds a fridge to the productvoid
addShoppingList
(ShoppingList shoppingList) Adds a shopping list to the productboolean
int
hashCode()
toString()
-
Constructor Details
-
Product
public Product()
-
-
Method Details
-
addFridge
Adds a fridge to the product- Parameters:
fridge
- the fridge product association to add to the product
-
toString
-
addShoppingList
Adds a shopping list to the product- Parameters:
shoppingList
- the shopping list to add to the product
-
addAllergy
Adds an allergy to the product- Parameters:
allergy
- the allergy to add to the product
-
equals
-
hashCode
public int hashCode()
-