mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
15 lines
330 B
Java
15 lines
330 B
Java
import java.util.List;
|
|
import java.util.function.BinaryOperator;
|
|
import java.util.function.Function;
|
|
|
|
class FooBar<K> {
|
|
void foo(List<K > s) {}
|
|
<T, U> List<T> bar(BinaryOperator<U> kk, Function<T, U> f){
|
|
return null;
|
|
}
|
|
|
|
void f(FooBar<Integer> integerFooBar){
|
|
integerFooBar.foo(bar((a, b) -> a + b, x -> 1));
|
|
}
|
|
}
|