mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 22:42:49 +07:00
a0bc3ee404
GitOrigin-RevId: 3652f4511a067b86bc9138f492a2a88cded09de0
12 lines
362 B
Java
12 lines
362 B
Java
// "Cast lambda return to 'long'" "true-preview"
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
public class StreamFilter {
|
|
void test() {
|
|
Map<Long, List<String>> collect = Stream.of("xyz", "asfdasdfdasf", "dasfafasdfdf")
|
|
.collect(Collectors.groupingBy(s -> (long) s.length()));
|
|
}
|
|
} |