I have a question about one book that you recommended me: "Java 8 in Action" (Raoul-Gabriel Urma, Mario Fusco, Alan Mycroft).
In the page 83, at the beginning of the page says:
Table 3.4. Examples of lambdas and method reference equivalents
Code: Select all
() -> Thread.currentThread().dumpStack()
Code: Select all
Thread.currentThread()::dumpStack
Supplier<Thread> function = Thread.currentThread()::dumpStack; // not compile
Could you help me to assignate correctly this method reference please?
Thank you in advance