mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
18 lines
322 B
Java
18 lines
322 B
Java
class Foo {
|
|
|
|
boolean foo(Object o, final PairFunction<String, ElementType, Boolean> fun){
|
|
boolean result = true;
|
|
result |= fun.fun(path);
|
|
if (o instanceof String) {
|
|
o.subst<caret>
|
|
}
|
|
}
|
|
|
|
void foo(String s) {}
|
|
}
|
|
|
|
interface PairFunction<T, V, U> {
|
|
U fun(T t, V v);
|
|
|
|
}
|