Demos and Samples for Java 8. This repository contains various showcases for Java 8 functional properties and lambda expressions. Most of the examples here, are build on a flight plan model for some airline. In order to see demos in practice take a look at Running Demos section below.
Each module in the project contains a Main class for execution of the examples related with that module. In order to see examples run Main.main(). Then stdout will guide you through examples.
- Lambda Expression Intro
- Behavior parametrization examples
- Composition - Comparator Composition
- Composition - Predicate Composition
- Function Chaining and Composition
- Introduction to Streams
- Intermediate and terminal operations demos
- Working with streams
- Filtering and slicing examples
- Mapping examples
- Finding and matching
- Basic reduction
- Data collection with java 8 collectors
- Reducing and summarizing examples
- Grouping
- Partitioning data
- Custom Java 8 collectors