GoF Patterns using Java 8 Lambdas - Part 1, the Factory Pattern
Posted on April 2, 2017
Monika Goel’s DZone article The Factory Pattern Using Lambda Expressions in Java 8 describes a nice way of using Java 8 Lambdas to implement the factory pattern. In this post I look at extending that approach using enum types to wrap the function definitions and evolving the pattern to neaten the implementation.
» [Read More]