It\'s easy to convert List into Map>. For example:
List
Map>
public Map> ge
I had a similar situation. I solved it like:
Map> map = stringList.stream().collect(Collectors.toMap(str -> str, str -> populateList(str)));
And populateList() is:
populateList()
private List populateList(final String str) { ... .... List list = // dao.get(str); return list; }