Using Lombok’s @Builder Annotation 1. Overview Project Lombok’s @Builder is a useful mechanism for using the Builder pattern without writing boilerplate code. We can apply this annotation to a Class or a method. In this brief tutorial, we’ll look at the different use cases for @Builder. 2. Maven Dependencies First, we need to add Project Lombok… Continue Reading lombok-builder

Implementing the Template Method Pattern in Java 1. Overview In this quick tutorial, we’ll see how to leverage the template method pattern – one of the most popular GoF patterns. It makes it easier to implement complex algorithms by encapsulating logic in a single method. 2. Implementation To demonstrate how… Continue Reading java-template-method-pattern

Overview of the java.util.concurrent 1. Overview The java.util.concurrent package provides tools for creating concurrent applications. In this article, we will do an overview of the whole package. 2. Main Components The java.util.concurrent contains way too many features to discuss in a single write-up. In this article, we will mainly focus… Continue Reading java-util-concurrent

Proxy, Decorator, Adapter and Bridge Patterns   1. Introduction In this article, we’re going to focus on Structural Design Patterns in Java – and discuss what these are and some fundamental differences between some of them. 2. Structural Design Patterns According to the Gang Of Four (GoF), design patterns can… Continue Reading java-structural-design-patterns