Functional Programming in Java
summary
Hands-on workshop refactors an inventory example from imperative loops to reusable Java 8 lambdas and method references, with a GitHub repo offering legacy, functional initial and completed solutions. Code replaces duplicated conditional methods with a generic SearchCriteria, then uses streams (filter, map, flatMap, reduce) to print names, sum quantities and find min items; streams are lazy until a terminal op forces work and parallelStream gives easy concurrency. For pre‑Java8 projects the talk shows using Guava predicates and Optional‑style handling to avoid nulls.
AI-written summary · about
chapters (6)
- 0:00Start
- 14:08IDE Magic!
- 16:26Lambdas
- 17:27Method References
- 18:25Java 8 Gyaan
- 23:11Standard Functional Interfaces
related talks
52mFunctional Programming with Java 8
55mFunctional Programming Patterns with Java8
51mFunctional Programming with Java
37mPragmatic Functional Refactoring with Java 8
38mJava 8: Functional programming
43mRefactoring to Functional Style
56mJava Functional Programming Idioms
36mHow functional programming change my Java code
