public class RecipeWithIngredients
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<Ingredient> |
ingredients |
Recipe |
recipe
To model the relationship between recipe and its ingredients
Recipe is connected to each ingredient by recipeId
|
Constructor and Description |
---|
RecipeWithIngredients(Recipe recipe,
java.util.List<Ingredient> ingredients)
Constructor RecipeWithIngredients with parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Special RecipeWithIngredients comparison
Not takes into account recipeId
|
public Recipe recipe
public java.util.List<Ingredient> ingredients
public RecipeWithIngredients(Recipe recipe, java.util.List<Ingredient> ingredients)
recipe
- the recipeingredients
- list of ingredients belong to itpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare with