Java 8 scal wiele kolekcji za pomocą flatMap
Stream<String> combinedStream = Stream.of(collectionA, collectionB)
.flatMap(Collection::stream);
Collection<String> collectionCombined =
combinedStream.collect(Collectors.toList());
Cooperative Coyote