Java 8 – List to Map – Concepts, Gotchas and Best practices

Introduction We looked at basic collections based transformations with Java 8 and their benefits in one of the earlier blog post in this series. The intent of this blog is to continue on that journey, and look at one of the other most common and useful transformation usage patterns when working with collections – transforming…

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…