In the Abstract Factory example show how to implement the pattern with Java 8 lambdas. There is an example in this talk: https://youtu.be/-k2X7guaArU