Guide to Guava MinMaxPriorityQueue and EvictingQueue 1. Overview In this article, we’ll be looking at the EvictingQueue, and MinMaxPriorityQueue constructs from the Guava library. The EvictingQueue is an implementation of the circular buffer concept. The MinMaxPriorityQueue gives us an access to its lowest and greatest element using the supplied Comparator.… Continue Reading guava-minmax-priority-queue-and-evicting-queue

Guava Functional Cookbook 1. Overview This cookbook is organized into small and focused recipes and code snippets for using the Guava functional-style elements – Predicates and Functions. The cookbook format is focused and practical – no extraneous details and explanations necessary. 2. The Cookbook filter a collection by a condition… Continue Reading guava-functions-predicates

New in Guava 21 common.util.concurrent 1. Introduction In the previous article, we started exploring the new functionality introduced in the common.collect package. In this quick article, let’s walk through additions to the common.util.concurrent package. 2. AtomicLongMap In concurrent scenarios, standard HashMap might not really work well, as it’s simply not… Continue Reading guava-21-util-concurrent