mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
25 lines
602 B
Java
25 lines
602 B
Java
// "Replace with lambda" "true-preview"
|
|
|
|
import java.util.Collection;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.function.Function;
|
|
|
|
class Test {
|
|
{
|
|
Map<Comparable, List<Collection<?>>> families = sortingMerge(new Fun<caret>ction<Collection<?>, Comparable>() {
|
|
@Override
|
|
public Comparable<Integer> apply(Collection<?> family) {
|
|
return new Integer(0);
|
|
}
|
|
});
|
|
}
|
|
|
|
<C extends Comparable<C>, T> Map<C, List<T>> sortingMerge(
|
|
Function<T, C> keyFunction) {
|
|
|
|
return new HashMap<C, List<T>>();
|
|
}
|
|
}
|