Decorator Design Pattern
The Decorator design pattern attaches additional responsibilities to an object dynamically. It is an alternative to subclassing for extending functionality.
Yearly Archives: 2019
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.
Google Guava belongs to the Guava project of Google. The String Utilities in Google Guava library offers several helper methods for working with Strings.
An EnumSet in Java is a specialized Set implementation meant to be used with enum types. All the elements in an EnumSet are enum instances.