mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
16 lines
398 B
Java
16 lines
398 B
Java
// "Create method 'getKey'" "true-preview"
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.function.Function;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
class X {
|
|
void x() {
|
|
Map<Double, List<String>> map = Stream.of("x").collect(Collectors.groupingBy(getKey()));
|
|
}
|
|
|
|
private Function<? super String, Double> getKey() {
|
|
return null;
|
|
}
|
|
} |