mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
14 lines
209 B
Java
14 lines
209 B
Java
|
|
import java.util.Comparator;
|
|
import java.util.function.Supplier;
|
|
|
|
class Test {
|
|
|
|
|
|
void f(Supplier<Comparable> m) {
|
|
g(m, Comparator.naturalOrder());
|
|
}
|
|
<K> void g(Supplier<K> f, Comparator<K> c) {}
|
|
|
|
}
|