|
@@ -3,9 +3,7 @@ package rocks.zipcode.quiz5.collections;
|
3
|
3
|
import rocks.zipcode.quiz5.objectorientation.Spice;
|
4
|
4
|
import rocks.zipcode.quiz5.objectorientation.account.BankAccount;
|
5
|
5
|
|
6
|
|
-import java.util.ArrayList;
|
7
|
|
-import java.util.List;
|
8
|
|
-import java.util.Map;
|
|
6
|
+import java.util.*;
|
9
|
7
|
|
10
|
8
|
/**
|
11
|
9
|
* @author leon on 27/12/2018.
|
|
@@ -16,13 +14,12 @@ public class Food implements Spice
|
16
|
14
|
public List<Spice> getAllSpices()
|
17
|
15
|
{
|
18
|
16
|
return food;
|
19
|
|
-
|
20
|
|
- //return (List<Spice>) food.get();
|
21
|
17
|
}
|
22
|
18
|
|
23
|
19
|
public <SpiceType extends Class<? extends Spice>> Map<SpiceType, Integer> getSpiceCount()
|
24
|
20
|
{
|
25
|
|
- return null;
|
|
21
|
+ return null;
|
|
22
|
+
|
26
|
23
|
}
|
27
|
24
|
|
28
|
25
|
public void applySpice(Spice spice)
|