Proxy Pattern vs Decorator Pattern
This post explores the differences between the Proxy Design Pattern and the Decorator Design Pattern.
This post explores the differences between the Proxy Design Pattern and the Decorator Design Pattern.
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.
The Decorator design pattern attaches additional responsibilities to an object dynamically. It is an alternative to subclassing for extending functionality.
In this blog post, we will see three ways to sort a list in Java. We will see how to sort in ascending and in reversed order.
The Collectors groupingBy is a static utility method in the Collectors class. It is used to group the stream elements by a key. In this blog post, we will look at the Collectors groupingBy with examples.
In this blog post, I will demonstrate the Java 8 Collectors.toMap method with examples and how it’s used to fold a stream into a map.
Google Guava is a Java library belonging to the Guava project of Google. In this post, we will look at the Google Guava Iterators utility class.
The Observer Design Pattern enables the subject to notify its observers when its state changes. In this post, we implement it using Java’s Observable class.
The Observer Design Pattern defines a one-to-many dependency between objects so that when the subject’s changes state, all of its observers are notified.
Google Guava is a Java library belonging to the Guava project of Google. We will look at the Joiner Utility class in the Google Guava library.