I have a problem. I created the following object:
HashMap<String, HashMap<String, HashMap<Integer, ArrayList<Slope>>>>
usedSlopeList = new HashMap<>();
Then I have the following ArrayList<Slope>:
ArrayList<Slope> tempSlopeList = Slope.getSlopeList(
agent, key, slope, startDateTimeWithExtraCandles);
But when I want to fill the usedSlopeList like this:
usedSlopeList.put("15m",
new HashMap<String, HashMap<Integer, ArrayList<Slope>>>()
.put("EMA15", new HashMap<Integer, ArrayList<Slope>>()
.put(15, tempSlopeList)));
Unfortunately this gives me the error:
Required type: HashMap<Integer,java.util.ArrayList<com.company.models.Slope>>
Provided: ArrayList<Slope,
But I don't see why this is wrong... Can someone help me?