"Function" with no arguments and no return type (void) in Java> = 8
I can determine it myself, for example. in this way:
@FunctionalInterface interface EmptyEmptyFunction { void apply(); } and then use it like this:
EmptyEmptyFunction m = () -> {System.out.println("Hello World - Java 8!");}; m.apply(); My question is: is there a built-in type in the JDK likeEmptyEmptyFunction , or should I define EmptyEmptyFunction
myself (as I already did)?
There are many functional interfaces.
http://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html
but I canβt find one that has exactly
same "signature" as my EmptyEmptyFunction .
No one has answered this question yet.
See similar questions:
or similar: