mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
14 lines
226 B
Java
14 lines
226 B
Java
|
|
interface Item<K, V>{}
|
|
interface Holder<A, B> {
|
|
boolean apply(Item<? extends A, ? extends B> i);
|
|
}
|
|
class C {
|
|
void f(Holder<?,?> h) {
|
|
h.apply(create());
|
|
}
|
|
|
|
private <L, M> Item<L,M> create() {
|
|
return null;
|
|
}
|
|
} |