January 11, 2019

Implementing java.util.function.DoubleConsumer in java, and using random numbers to test it.

Java provides a lot of¬†Functional Interface¬†, some are generic , can be used by all the data-types, whereas some are specialised for primitive types. Reasons, that I can think of are, they are a providing interfaces, which are going to be used most often second, they are providing some compiler magic to optimize these interfaces. […]

Read more