Casting Java functional interfaces – stackoverflow.com

As always I was looking through JDK 8 sources and found very interesting code: @Override default void forEachRemaining(Consumer<? super Integer> action) { if (action instanceof IntConsumer) ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Casting Java functional interfaces – stackoverflow.com"