3 ms·
Too bad you can't just call functional interfaces in Java 8, or you could just do something like this: BiFunction<BigDecimal, BigDecimal, BigDecimal> add = Big
by kilink 11y ago
Too bad you can't just call functional interfaces in Java 8, or you could just do something like this:
BiFunction<BigDecimal, BigDecimal, BigDecimal> add = BigDecimal::add;
add(x, y);
Unfortunately you have to do:
add.apply(x, y);
Which is kind of cumbersome.
- eveningcoffee 11y agoYes, it pretty much defeats the point. It would work if they had implemented a default method for an interface. Unfortunately they brought something completely different in the name of Default Methods, and that was in my opinion not needed.