How to prevent an accidental damage to your Java 8 Functional Interfaces

Single Abstract Method Interfaces serve as a fundamental building block for functional programming within Java 8. The design of Lambda expressions in Java 8 is fundamentally dependent on Single Abstract Method Interfaces. And as we all know,  any Java interface can be classified as a Single Abstract Method Interface (or Functional Interface) as long as…

Using Java 8 Lambdas to implement simple transformations – Part 1

If you are not used to functional programming, or have been coding in prior Java versions for a long time now, it is somewhat a mixed feeling when you read about Java 8 Lambda features or when you look at Java 8 code utilising the Lambda feature. Obviously, reading about it makes you feel like you should…

Benchmarking Approaches to Sort Java Map by Value

As the name suggests, this blog tries to explore a few ways one could use to sort a Java Map by values it contains and present a quick comparison of these approaches. Alright, first things first, sorting a Map by Value is not supported directly through a JDK API, at least until Java 8, so one needs to…