English
Topic 11. Lambda expressions, functional interfaces, and the Stream API
Goal: learn to pass behavior, build lazy pipelines, group data, and handle the absence of a result explicitly.
Lecture contents
- Functional interfaces — Functional interfaces and target types · Standard functional interfaces
- Method references and Optional — Method references and comparators · Optional and the absence of a result
- The Stream API pipeline — Source, pipeline, and terminal operation · Transformation and flattening · Terminal operations and reduction
- Collectors and Gatherers — Collectors and grouping · Primitive streams and Gatherers
- Parallelism and testing a pipeline — Parallelism, errors, and debugging · The pipeline contract and equivalence testing