This compact book introduces the concepts of Java lambdas and parallel streams in a c …… [ 展开全部 ]
oncise 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 way—within 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.
[ 收起 ]
Contents
About the Author vi
About the Technical Reviewer
Foreword xi
Chapter 1: Introduction 1
Chapter 2: The Data 5
Chapter 3: First Analysis—From Naive to Flexible
Chapter 4: Lambda Expressions 13
Chapter 5: Default Method 19
Chapter 6: Optional 25
Chapter 7: Make the Acquaintance of Streams 2
Chapter 8: stream(), Stream and Spliterator
Chapter 9: Parallel Stream 41
Chapter 10: Collector and Concurrency 4
Chapter 11: GroupingCollector 61
Appendix A: Program to Create the Demo Data 69
Index 85