I want to extract a List from a Map> (E is a random Class) using stream().
List
Map>
E
stream()
I
In addition to other answers:
List result = map.values() .stream() .collect(ArrayList::new, List::addAll, List::addAll);
This could also do the trick.