Bridge Design Pattern
The Bridge Design Pattern decouples an abstraction from its implementation so that the two can vary independently. This pattern is also known as Handle/Body
Monthly Archives: June 2020
The Bridge Design Pattern decouples an abstraction from its implementation so that the two can vary independently. This pattern is also known as Handle/Body
The Collectors partitioningBy method in the Collectors class groups the elements of a stream by a predicate and an optional downstream collector
In this post, we will see the three ways to sum a stream of numbers (using Java streams). We use the mapToInt, reduce, and collect methods.
The Composite Design Pattern composes objects into tree structures to represent part-whole hierarchies and lets clients treat individual objects and compositions of objects uniformly.
In this post, we will learn about the new methods added to the Java Collectors from Java 9 to 11 (Collectors filtering, flatMapping and teeing).