Read more
Presents information on the lambda-related features of Java SE 8, including the syntax of lambda expressions, the basic operation of streams and pipelines, and examining stream performance with microbenchmarking, with code examples provided.
List of contents
Chapter 1. Taking Java to the Next Level
Chapter 2. The Basics of Java Lambda Expressions
Chapter 3. Introduction to Streams and Pipelines
Chapter 4. Ending Streams: Collection and Reduction
Chapter 5. Starting Streams: Sources and Spliterators
Chapter 6. Stream Performance
Chapter 7. API Evolution with Default Methods
About the author
Maurice Naftalin has over 30 years’ experience in IT – as a developer, designer, architect, manager, teacher and author. Naftalin, a certified Java Programmer, has worked in every release of Java to date. His experience in Java and business give him a unique perspective on the fundamental change that comes with introducing Lambda expressions in Java SE 8. Naftalin is a frequent presenter at conferences worldwide, including the annual JavaOne. He runs a popular tutorial site in collaboration with Oracle’s development team, www.lambdafaq.org, focused on the new language features in Java 8.
Summary
Learn how to use lambda expressions to take full advantage of performance improvements provided by today’s multicore hardware. This book explains how to write lambdas, and how to use them in streams and in collection processing. Detailed code examples are provided throughout.