Adapter Design Pattern
The Adapter Design Pattern converts an interface into another interface that the clients expect. It adapts an interface to look like a different interface.
Yearly Archives: 2019
The Adapter Design Pattern converts an interface into another interface that the clients expect. It adapts an interface to look like a different interface.
Apache Commons CSV is one of the components in the Apache Commons project. This post is on how to write CSV files using Apache Commons CSV.
In this post, let us build on our previous benchmarking attempt to arrive at a better but still a naive benchmarking framework in Java.
In this post, I explain the usual way in measuring the execution or running time of code in Java, what is wrong with it and why it shouldn't be used.
This post shows the Collectors toMap duplicate key exception and the changes made in Java 9 to improve the exception message to contain the value of the key.
The Template Method Design Pattern defines the steps of an algorithm and allows subclasses to provide the implementation for one or more steps.
Optional was added to Java 8. This post explains the new methods or APIs added to the Optional class in Java from Java 9 through 11 with examples.
Optional is a container object added to Java 8+ that is used as a wrapper over some value. It provides a mechanism to represent “no result” for a method.
Introduction The previous two design pattern posts were about the Decorator Pattern and the Proxy Design Pattern. These pattern look very similar though they have different purposes. The implementation or the mechanism…
The Proxy Design Pattern provides a surrogate or placeholder for another object to control access to it. It acts as a stand-in for another object.