class JavaClass { JavaClass(Runnable r) { if (r != null) r.run(); } }