Prototype Design Pattern

The Prototype Pattern specifies the kind of objects to create using a prototypical instance and create new objects by copying this prototype

October 19, 2020

Flyweight Design Pattern

The Flyweight design pattern allows us to use sharing to support a large number of fine-grained objects efficiently in an application.

October 12, 2020

Java 8 Streams – anyMatch, allMatch, and noneMatch

This post is on the anyMatch, allMatch and noneMatch methods which are short-circuiting terminal operations on a Java Stream.

October 5, 2020

Function Chaining in Java

A Function is primarily used along with the map operation on a Java stream. In this post, we will learn about Function chaining in Java 8.

September 29, 2020

Predicate Chaining in Java

We have used a Predicate in a Java stream. This post covers the methods in Predicate class which allow us to do Predicate chaining in Java 8.

September 21, 2020

Apache Commons CLI

The Apache Commons CLI is a library that provides API for parsing command-line options/arguments which we pass to programs.

September 14, 2020

Java Stream takeWhile and dropWhile

The Java Stream takeWhile and dropWhile methods allow to return or drop a prefix/subset of elements in a stream based on a passed predicate.

September 7, 2020

Seven Ways to Create a Stream in Java

A Stream is a sequence of elements supporting sequential and parallel aggregate operations. We will see seven ways to create a Stream in Java

August 31, 2020

State Design Pattern

The State Design Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class.

August 25, 2020

Apache Commons FileUtils – Directory operations

Apache Commons FileUtils has utility methods for file and directory manipulation. This post is on Apache Commons IO FileUtils directory operations.

August 17, 2020