mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-23 04:27:40 +07:00
98f2cd578a
GitOrigin-RevId: 65b32ec19f159956adc298eba0d02aa05d4c2c0d
15 lines
249 B
Java
15 lines
249 B
Java
interface FunctionalInterface<T> {
|
|
void apply(T t);
|
|
}
|
|
|
|
interface MethodOwner<T> {
|
|
void method(FunctionalInterface<T> fi);
|
|
}
|
|
|
|
class JavaClass {
|
|
|
|
void usage(MethodOwner<String> mo) {
|
|
mo.method(<caret>item -> System.out.println(item));
|
|
}
|
|
}
|