mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-11-13 00:33:59 +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 parent
bd3c0ddfba
commit
504a5727d6
43 files changed
+444
-232
No files matched your search
+2
-2
@@ -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