Transforming Data using the Functional API
summary
Shows concrete Java code patterns using the Streams and Collectors APIs (Java 8+), demonstrating filter map reduce as the core model and using Collectors like Collectors.joining and toList/toSet/toMap, plus partitioning and groupingBy with mapping/counting; gives a working example that finds the first repeated letter in "hello" by comparing indexOf/lastIndexOf, shows a reduce totaling ages (result 60) and counting evens (result 5), and explains lazy evaluation and short-circuiting.
AI-written summary · about
chapters (9)
- 0:00Introduction to functional API
- 1:21Filtering collections of data
- 5:10Transforming data with map
- 8:38Reducing data to single values
- 17:37Specialized reduction operations
- 23:37Lazy evaluation and efficiency
- 31:39Solving real-world problems
- 43:04Collectors and data grouping
- 52:45Grouping and conclusion
related talks
57mLearning To Code In Functional Style with Java
55mExploring Collectors
02h 25mExploring Collectors
43mRefactoring to Functional Style
44mI didn't know you could do that with Java Streams!
53mExploring Collectors: A Powerful Utility Class in the JDK
49mJava Functional Programming Idioms
01h 01mOOP and FP
