Powiedzmy, że mam zajęcia z psami. Wewnątrz mam mapę, a jedną z wartości jest Rasa.Strumień Java - Sortuj listę do listy dostępnych list
public class Dog{
String id;
...
public map<String,String>
}
Chcę dostać mapę list
HashMap<String, List<Dog>> // breed to a list<Dog>
Korzystanie strumień zamiast iteracji go.
Jak mogę to zrobić?