mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +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 'y' to separate stream step" "true"
|
||||
// "Extract variable 'y' to separate mapping method" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
public class Test {
|
||||
void testFlatMap() {
|
||||
Stream.of("xyz").mapToInt(String::length).flatMap(y -> IntStream.range(0, y)).forEach(System.out::println);
|
||||
Stream.of("xyz").mapToInt(String::length).flatMap(y -> IntStream.range(0, y)).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user