mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
ExtractStreamMapAction: made stream-agnostic (with ability to extend to other chaining lambda APIs like Guava, RxJava, etc.); implemented for CompletableFuture; existing lambda is always preserved now.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// "Extract variable 'set' to separate stream step" "true"
|
||||
// "Extract variable 'set' to separate mapping method" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
public class Test {
|
||||
void testMap(List<Map<String, String>> list) {
|
||||
list.stream().map(Map::keySet).flatMap(set -> set.stream()).forEach(System.out::println);
|
||||
list.stream().map(Map::keySet).flatMap(set -> set.stream()).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user