Abstract Factory Pattern in Java 1. Overview In this article, we’ll discuss the Abstract Factory design pattern. The book Design Patterns: Elements of Reusable Object-Oriented Software states that an Abstract Factory “provides an interface for creating families of related or dependent objects without specifying their concrete classes”. In other words, this model… Continue Reading java-abstract-factory-pattern

Using the @Singular Annotation with Lombok Builders 1. Overview The Lombok library provides a great way of simplifying data objects. One of the key features of Project Lombok is the @Builder annotation, which automatically creates Builder classes for creating immutable objects. However, populating collections in our objects can be clumsy… Continue Reading lombok-builder-singular