Curious about static method references
Sam Pullara
sam at sampullara.com
Fri Jun 29 14:13:54 PDT 2012
This shouldn't be a problem. The only difference between a static
method reference and an instance static method reference is the static
one doesn't have an additional instance parameter:
Some method somewhere:
public void execute(Runnable r);
Some static method somewhere:
class MyRunner {
public static void myRunner() { ... }
}
Calling the method:
execute(MyRunner::myRunner)
Sam
On Fri, Jun 29, 2012 at 1:47 PM, Paulo Levi <i30817 at gmail.com> wrote:
> It's the opposite, a static method reference treated as a functional
> interface argument to a method.
>
More information about the lambda-dev
mailing list