This compact book introduces the concepts of Java lambdas and parallel streams in a concise form. It begins by introducing new supporting features such as functional interfaces, default methods and more. After this, the author demonstrates how streams can be parallelized in a very simple waywithin certain limits, no knowledge about the thread management is needed. Nevertheless, some basic elements in the context of parallelism need to be considered. Here, the book provides a variety of information and best practices.
What You Will Learn
- Master lambdas and streams
- Work with the default method
- Harness streams and the stream() function
- Use Stream and Spliterator
- Take advantage of parallel streams
- Work with collectors and concurrency
Who This Book Is For
Experienced Java programmers and developers.
div>
1. Inroduction
1.1 Lambdas and (Parallel) Streams
1.2 The challenge
1.3 The solution
1.4 A first explanation
2. The data
3. First analysis - from naive to flexible
3.1 Fix filter
3.2 Simple parameterization
3.3 Behavior parameterization
3.4 Anonymous classes
4. Lambda expressions
4.1 Functional interface
4.2 Lambda notation
4.3 Lazy evaluation
4.4 Summary
5. Default method&l#