
Guide to Java 8 groupingBy Collector
1. Introduction In this tutorial, we’ll see how the groupingBy collector works using various examples. For us to understand the material covered in this tutorial, we’ll need a […]
1. Introduction In this tutorial, we’ll see how the groupingBy collector works using various examples. For us to understand the material covered in this tutorial, we’ll need a […]
1. Overview In this tutorial, we will be going through Java 8’s Collectors, which are used at the final step of processing a Stream. If you […]
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 article, we will look at one of Map implementations from Google Guava library – Multimap. It is a collection that maps keys to values, […]
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. 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. 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. Overview In this tutorial, we’ll walk through some of the main implementations of concurrent queues in Java. For a general introduction to queues, refer […]
1. Introduction In this tutorial, we’ll be discussing Java’s Queue interface. First, we’ll take a peek at what a Queue does, and some of its core methods. Next, we’ll dive into a […]
1. Overview In this article, we’ll be looking at the DelayQueue construct from the java.util.concurrent package. This is a blocking queue that could be used in producer-consumer programs. It […]
1. Overview In this article, we’ll be looking at the TransferQueue construct from the standard java.util.concurrent package. Simply put, this queue allows us to create programs according to the […]
1. Overview In this article, we’ll be looking at the SynchronousQueue from the java.util.concurrent package. Simply put, this implementation allows us to exchange information between threads in a thread-safe […]
1. Overview In this article, we will look at one of the most useful constructs java.util.concurrent to solve the concurrent producer-consumer problem. We’ll look at an API […]
1. Introduction In this article, we’ll focus on the PriorityBlockingQueue class and go over some practical examples. Starting with the assumption that we already know what a Queue is, […]
1. Overview In this article, we’ll see how to use HashMap in Java, and we’ll look at how it works internally. A class very similar to HashMap is Hashtable. Please […]
1. Overview EnumMap is a Map implementation that exclusively takes Enum as its keys. In this tutorial, we’ll discuss its properties, common use cases and when we should use it. […]
1. Overview In this article, we are going to explore the internal implementation of LinkedHashMap class. LinkedHashMap is a common implementation of Map interface. This particular implementation is a subclass of HashMap and […]
1. Overview In this quick article, we’ll be looking at the ConcurrentSkipListMap class from the java.util.concurrent package. This construct allows us to create thread-safe logic in a lock-free way. […]
1. Overview Maps are naturally one of the most widely style of Java collection. And, importantly, HashMap is not a thread-safe implementation, while Hashtable does provide thread-safety by synchronizing operations. […]
1. Overview In this article, we will be looking at a WeakHashMap from the java.util package. In order to understand the data structure, we’ll use it here to roll […]