mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
GitOrigin-RevId: 4bcbf2d43bddca5ded941c2b1497715ff977ca0b
18 lines
360 B
Java
18 lines
360 B
Java
|
|
class Test {
|
|
public interface Visitor<Type> {
|
|
boolean visit(Type component);
|
|
}
|
|
|
|
public static native void iterate(final Visitor visitor);
|
|
|
|
public static void analyze() {
|
|
try {
|
|
iterate((Visitor<String>)(String component) -> true);
|
|
System.out.println("hello");
|
|
}
|
|
catch (Exception e) {
|
|
System.out.println(e);
|
|
}
|
|
}
|
|
} |