mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
15 lines
315 B
Java
15 lines
315 B
Java
class Test {
|
|
void test(Helper<Integer> helper) {
|
|
staticFactory(helper, Integer[]::new);
|
|
}
|
|
|
|
<P_OUT> void staticFactory(Helper<P_OUT> helper,
|
|
IntFunction<P_OUT[]> generator){}
|
|
|
|
class Helper<K> {}
|
|
|
|
interface IntFunction<R> {
|
|
R apply(int value);
|
|
}
|
|
}
|