BiMap in Google Guava
The BiMap in Google Guava is a bidirectional map that preserves the uniqueness of values and keys. This allows us to lookup by value in the map too.
Java Developer Central
The BiMap in Google Guava is a bidirectional map that preserves the uniqueness of values and keys. This allows us to lookup by value in the map too.
The Memento Design Pattern allows to capture and externalize an object’s internal state so that the object can be restored later without violating encapsulation
Introduction In the last post, I wrote about the Gang of Four (GoF) Builder Design Pattern. In this post, we will look at the builder pattern from the Effective Java…
The builder design pattern separates the construction of an object from its representation so that the same process can create different representations.
A Multimap is a map but it can map multiple values against a key. In this post, we will look at a related class of Multiset - the Multimap in Google Guava.
The chain of responsibility design pattern chains the receiving objects and pass the request along the chain until an object handles it.
A Multiset in Google Guava is a collection that supports order-independent equality (behaves like a Set). But it can have duplicate elements.
JMH (Java Microbenchmark Harness) is a Java harness library for writing benchmarks on the JVM. In this post, we will learn about JVM benchmark.
Java 8 streams are lazy. The intermediate operations will not be executed till a terminal operation is invoked. But, Java 8 streams flatMap are not lazy.
The Facade Design Pattern provides a unified interface to a set of interfaces in a subsystem. It defines a higher level interface that makes the subsystem easier to use.