how can i return only values of map with stream ? Map<String,List> -> List
is the only way list.addAll ?
map.values().stream().filter(s->s.size()>1).collect(Collectors.toList()).stream());
how can i return only values of map with stream ? Map<String,List> -> List
is the only way list.addAll ?
map.values().stream().filter(s->s.size()>1).collect(Collectors.toList()).stream());