|
|
@@ -1,5 +1,6 @@
|
|
|
package org.leumasjaffe.recipe.model;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Collection;
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
@@ -13,12 +14,12 @@ import lombok.Data;
|
|
|
|
|
|
@Data
|
|
|
public class Card {
|
|
|
- int id; // TODO Fix this
|
|
|
- int[] dependsOn; // decltype(id)[]
|
|
|
- String vessel;
|
|
|
- Optional<Step> preparation;
|
|
|
- List<Step> cooking;
|
|
|
- Optional<Rest> rest;
|
|
|
+ int id = 0; // TODO Fix this
|
|
|
+ int[] dependsOn = {}; // decltype(id)[]
|
|
|
+ String vessel = "";
|
|
|
+ Optional<Step> preparation = Optional.empty();
|
|
|
+ List<Step> cooking = new ArrayList<>();
|
|
|
+ Optional<Rest> rest = Optional.empty();
|
|
|
|
|
|
@JsonIgnore
|
|
|
Collection<Ingredient> getIngredients() {
|