
Filtering and Transforming Collections in Guava
1. Overview In this tutorial, we’ll illustrate how to filter and transform collections with Guava. We will filter using Predicates, transform using the Functions that the library […]
1. Overview In this tutorial, we’ll illustrate how to filter and transform collections with Guava. We will filter using Predicates, transform using the Functions that the library […]
1. Overview In this article, we will be looking at PCollections, a Java library providing persistent, immutable collections. Persistent data structures (collections) can’t be modified directly during the […]
1. Overview Eclipse Collections is another improved collection framework for Java. Simply put, it provides optimized implementations as well as some additional data structures and features […]
1. Overview In this tutorial, we’ll show how to use the Google Guava’s Table interface and its multiple implementations. Guava’s Table is a collection that represents a table like […]
1. Overview In this tutorial, we will learn how to use the Joiner and Splitter in the Guava library. We’ll convert collections into a String with the Joiner and we’ll split a […]
1. Overview In this article, we will look at one of Map implementations from Google Guava library – Multimap. It is a collection that maps keys to values, […]
1. Introduction This cookbook article is organized into small and focused recipes and code snippets for using Guava style collections. The format is that of a growing list […]
1. Overview In this quick tutorial, we’ll have a look at the CircularFifoQueue data structure provided in the collections4.queue package of the Apache Commons Collections library. CircularFifoQueue<E> implements the Queue<E> interface and […]
1. Introduction MapUtils is one of the tools available in the Apache Commons Collections project. Simply put, it provides utility methods and decorators to work with java.util.Map and java.util.SortedMap instances. […]
1. Overview Simply put, the Apache CollectionUtils provides utility methods for common operations which cover a wide range of use cases and helps in avoiding writing boilerplate code. […]
1. Overview In this short article, we’ll be looking at an interesting data structure in the Apache Commons Collections library – the BidiMap. The BidiMap adds a possibility […]
1. Overview The Apache Commons Collections library provides useful classes that complement the Java Collections Framework. In this article, we will review the interface OrderedMap, which extends java.util.Map. 2. […]
1. Overview In this article, we’ll be exploring the SetUtils API of Apache Commons Collections library. Simply put, these utilities can be used to execute certain operations […]
1. Introduction In this quick article, we’ll focus on how to use the Apache’s Bag collection. 2. Maven Dependency Before we start, we need to import the […]
1. Overview In this quick tutorial, we’re going to talk about four different ways to remove items from Java Collections that match certain predicates. We’ll naturally also look […]
1. Overview In this quick tutorial, we’ll learn about the various ways in which we can get the size of an Iterable in Java. 2. Iterable and […]
1. Introduction An Iterator is one of many ways we can traverse a collection, and as every option, it has its pros and cons. It was first […]
1. Introduction Java Collections is a topic often brought up on technical interviews for Java developers. This article reviews some important questions that are asked […]
1. Overview Java 9 brings the long-awaited syntactic sugar for creating small unmodifiable Collection instances using a concise code one-liner. As per JEP 269, new convenience factory methods […]
1. Introduction We often wish to convert a Java Stream into a collection. This usually results in a mutable collection, but we can customize it. In this […]