mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
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));
|
|
}
|
|
}
|