I have this object filled:
Map<String, List<LogLine>> logMap = new TreeMap<>();
And after making a filter, I'd like a flat list of it, but I can only create list list
List<List<LogLine>> foo = logMap.entrySet().stream()
.filter(map -> map.getValue().size() > parameters.getThreshold())
.map(map -> map.getValue())
.collect(Collectors.toList());
How can I create only one List with all LogLines using Stream? I tried using flatMap, but the compiler does not.