Home » #spring

#spring

Iterator Pattern

The Iterator Pattern also known as Cursor is a behavioral design pattern that provides a way to access elements of an aggregate object (such as a collection) sequentially without exposing the underlying representation of that object. It is used to traverse a container of elements, allowing clients to access its elements without needing to know

Iterator Pattern Read More »

Decorator Pattern

The Decorator pattern belongs to the category of structural design patterns. It provides a way to enhance the functionality of objects by enclosing them within wrapper objects, which in turn, impart additional behaviors to these objects. When developing a reporting system, you need to provide flexibility for users to customize the content and appearance of

Decorator Pattern Read More »

Composite Pattern

The Composite Pattern is a structural design pattern to compose objects into tree-like structures to represent part-whole hierarchies. It allows clients to treat individual objects and compositions of objects uniformly. In essence, the Composite Pattern creates a unified interface for both individual objects (leaf nodes) and composite objects (nodes that can contain other objects). This

Composite Pattern Read More »

Java 8 Stream API

The Stream API, which was introduced with the release of Java 8, serves as a powerful tool for processing collections of objects. A stream in Java represents a sequence of objects and offers a range of methods that can be efficiently chained together to achieve specific outcomes. Key aspects of the Java stream feature include:

Java 8 Stream API Read More »

Function Interface

The java.util.function.Function interface stands as one of the valuable functional interfaces (an interface that contains only one abstract method). It is a key component of the Java 8 functional programming API. It  provides a way to define and manipulate functions in Java code. Why Function Interface? You can use the function interface to create new functions or

Function Interface Read More »

Spring Data JPA

Spring Data JPA is a powerful and user-friendly framework that simplifies data access and persistence in Java applications using the Java Persistence API (JPA). It is part of the larger Spring Data family, which aims to provide consistent data access solutions across various data stores. What is ORM? ORM stands for Object-Relational Mapping. It is

Spring Data JPA Read More »

Scroll to Top