Functional Style Programming – Extending APIs
This chapter includes 24 problems covering a wide range of functional programming topics. We will start by introducing the JDK 16 mapMulti()
operation, and continue with a handful of problems for working with predicates (Predicate
), functions, and collectors.
If you don’t have a background in functional programming in Java, then I strongly recommend you postpone this chapter until you have spent some time getting familiar with it. You could consider reading Chapters 8 and 9 from Java Coding Problems, First Edition.
At the end of this chapter, you’ll be deeply skilled in functional programming in Java.