Mastering lambda Expressions: Java Multi-core programming PDF

Source: Internet
Author: User
Tags benchmark instance method java se

: Network Disk Download

Content Introduction· · · · · ·

An authoritative guide to lambda expressions

"Mastering lambda Expressions: Java multicore Programming" describes how lambda-related features in Java SE 8 help Java meet the challenges of next-generation parallel hardware architectures. This book explains how to write lambda, how to use lambda in flow and collection processing, and provides a complete code example. You'll learn how to leverage lambda expressions to take advantage of the performance improvements that today's multicore hardware brings.

Main content:

Why Lambda is needed and how it will change Java programming

Lambda expression syntax

Basic operations for flow and piping

Using collectors and aggregation to terminate pipelines

Create a Stream

Split iterators, Fork/join frames, and exceptions

Checking the performance of a stream using a micro-benchmark test

Using the default method Evolution API

Author profile ...

Maurice Naftalin has more than more than 30 years of experience in the IT field, serving as a developer, designer, architect, manager, teacher, and author. Naftalin is a certified Java programmer who has used various releases of Java. His experience in Java and business gave him a unique insight into the fundamental changes in the introduction of lambda expressions in Java SE 8. Naftalin is a frequent guest at various conferences, including the annual JavaOne. He works with the Oracle development team to run a popular web site--www.lambdafaq.org, which focuses on new language features in Java 8.

Catalog/Directory
The 1th chapter goes into the new generation of JAVA1
1.1 from an external iteration to an internal iteration 2
1.1.1 Internal Iteration 4
1.1.2 Command Mode 6
1.1.3 Lambda expression 8
1.2 from collection to stream 11
1.3 from serial to parallel 15
1.4 Combined Behavior 18
1.5 Summary 22
2nd. Basic knowledge of Java lambda expressions 23
2.1 Definition of lambda expression 24
2.2 Lambda and anonymous inner class 26
2.2.1 No identification issues 26
2.2.2 Scope rules for lambda 27
2.3 Variable Capture 29
2.4 Function-Type interface 32
2.5 Using a lambda expression 37
2.6 Method and constructor reference 39
2.6.1 static method Reference 40
2.6.2 instance method Reference 41
2.6.3 Constructor Reference 44
2.7 Type checking 44
2.7.1 What is a function type 45
2.7.2 matching function Type 46
2.8 Overload resolution 48
2.8.1 overloading of lambda expressions 49
Overload 52 referenced by the 2.8.2 method
2.9 Summary 54
Chapter 3rd Flow and pipeline Introduction 55
3.1 Stream Fundamentals 56
3.1.1 Parallel-oriented code 59
3.1.2 Native Stream 61
3.2 Anatomy Pipeline 63
3.2.1 Start Pipeline 63
3.2.2 Conversion Pipeline 64
3.2.3 Non-Invasive 75
3.2.4 Terminating Pipe 78
3.3 Summary 90
4th. End Flow: Collection and aggregation 91
4.1 Using the Collector 94
4.1.1 Independent pre-defined collector 94
4.1.2 Combination Collector 99
4.1.3 Link Pipeline 104
4.1.4 Sample Description: The most popular topic 106
4.2 Profiling Collector 108
4.3 Writing collectors 111
4.3.1 Completion 115
4.3.2 Sample Description: Find my book 118
4.3.3 Rules for collectors 122
4.4 Convergence 124
4.4.1 aggregation of native values 124
4.4.2 Aggregation of reference streams 126
4.4.3 Assemble collectors by aggregation 131
4.5 Summary 132
5th starting stream: Source and split iterator 135
5.1 Creating a Stream 136
5.2 Split iterators with fork/join145
5.3 Exception 149
5.4 Example Description: Recursive grep155
5.5 Summary 166
Chapter 6th performance of Flow 167
6.1 Micro-Benchmark Metric 170
6.1.1 Measuring Dynamic Runtime 171
6.1.2 Java microbenchmarking Harness173
6.1.3 Test Method 174
6.2 Select execution Mode 178
6.3 Stream Characteristics 181
6.4 Sort 184
6.5 stateful operation and stateless operation 187
6.6 Packing and Unpacking 188
6.7 Split iterator Performance 189
6.8 Collector Performance 190
6.8.1 merging of concurrent maps 190
6.8.2 Performance Analysis: grouping points 192
6.8.3 Performance Analysis: Find my book 192
6.9 Summary 194
The 7th chapter uses the default method evolution API195
7.1 Using the default method 199
7.2 What is the role of abstract class 201
7.3 Syntax for default methods 203
7.4 Default method and inheritance 204
7.5 Static methods in the interface 211
7.6 Summary 213
Summary of the book 215

: Network Disk Download

Mastering lambda Expressions: Java Multi-core programming PDF

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.