How to flatten all items from a nested Java Collection into a single List?
Assuming that you use Java 8, you could do that with the Stream API thanks to the method flatMap(Function<? super T,? extends Stream<? extends R>> mapper) as next: // 1. Convert the Set as a Stream of List<Map<String, List<Object>>> // 2. Extract the elements of the lists to get a Stream of Map<String, List<Object>> // … Read more