How can I collect multiple List
values into one list, using java-streams
?
List<MyListService> services;
services.stream().XXX.collect(Collectors.toList());
interface MyListService {
List<MyObject> getObjects();
}
As I have full control over the interface: or should I change the method to return an Array instead of a List?