mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
17 lines
342 B
Java
17 lines
342 B
Java
// "Create method 'getKey'" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
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(this::getKey));
|
|
}
|
|
|
|
private Double getKey(String s) {
|
|
return null;
|
|
}
|
|
}
|