interface FunctionalInterface { void apply(T t); } interface MethodOwner { void method(FunctionalInterface fi); } class JavaClass { void usage(MethodOwner mo) { mo.method(item -> System.out.println(item)); } }