|
@@ -7,8 +7,9 @@ import java.util.*;
|
7
|
7
|
/**
|
8
|
8
|
* @author leon on 27/12/2018.
|
9
|
9
|
*/
|
10
|
|
-public class Food {
|
|
10
|
+public class Food {
|
11
|
11
|
List<Spice> listing = new LinkedList<>();
|
|
12
|
+
|
12
|
13
|
public List<Spice> getAllSpices() {
|
13
|
14
|
|
14
|
15
|
return listing;
|
|
@@ -17,7 +18,12 @@ public class Food {
|
17
|
18
|
public <SpiceType extends Class<? extends Spice>> Map<SpiceType, Integer> getSpiceCount() {
|
18
|
19
|
|
19
|
20
|
|
20
|
|
- return null;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+ Map<SpiceType, Integer> amountOfPeppers = new HashMap<>();
|
|
24
|
+
|
|
25
|
+ return amountOfPeppers;
|
|
26
|
+
|
21
|
27
|
}
|
22
|
28
|
|
23
|
29
|
public void applySpice(Spice spice) {
|