Proficient in lambda expression: Java multicore programming pdf__ algorithm

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

Download address: Network disk download

Introduction to the content

Lambda Expression Authority Guide

"Proficient in lambda expression: Java multi-core programming" describes how the lambda-related features in Java SE 8 help Java meet the challenges of the next generation of parallel hardware architectures. This book explains how to write a lambda, how to use a lambda in flow and collection processing, and provides a complete code example. You will learn how to make the most of the performance improvements that today's multi-core hardware can bring by using lambda expressions.

Main content:

Why do I need a lambda, how does it change Java programming

Lambda expression syntax

Basic operation of flow and pipeline

Using collectors and pooling to terminate pipelines

Create a Stream

Split iterators, fork/join frames and exceptions

Using a micro-benchmark test to check the performance of a stream

Using the default method to evolve an API author introduction .

Maurice Naftalin has more than more than 30 years of experience in it and has served as a developer, designer, architect, manager, teacher, and author role. Naftalin is a certified Java programmer who has used various release versions 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 fixture 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 the new language features in Java 8.Table of ContentsDirectory
1th chapter into the new generation of Java 1
1.1 from external iterations to internal iterations 2
1.1.1 Internal Iteration 4
1.1.2 Command Mode 6
1.1.3 Lambda expression 8
1.2 from set to stream 11
1.3 from serial to parallel 15
1.4 Combination Behavior 18
1.5 Summary 22
2nd Chapter Java Lambda Expressions Basic Knowledge 23
Definition of 2.1 lambda expression 24
2.2 Lambda and anonymous inner class 26
2.2.1 No identity Issue 26
Scope rule for 2.2.2 Lambda 27
2.3 Variable Capture 29
2.4-Function Interface 32
2.5 Using a lambda expression of 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 Check 44
2.7.1 What is function Type 45
2.7.2 matching function Type 46
2.8 Overload resolution 48
2.8.1 Lambda expression overload 49
Overload 52 referenced by the 2.8.2 method
2.9 Summary 54
3rd Chapter flow and pipeline Introduction 55
3.1 Flow Basics 56
3.1.1 Parallel-oriented code 59
3.1.2 Native Flow 61
3.2 Analysis Pipeline 63
3.2.1 Start Pipeline 63
3.2.2 Conversion Pipeline 64
Non-invasive 75 of 3.2.3
3.2.4 Termination Pipeline 78
3.3 Summary 90
4th Chapter Termination Flow: Collection and aggregation 91
4.1 Use Collector 94
4.1.1 Standalone predefined collector 94
4.1.2 Combo Collector 99
4.1.3 Link Pipeline 104
4.1.4 Sample Description: The most popular theme 106
4.2 Analysis Collector 108
4.3 Writing collector 111
4.3.1 Finish 115
4.3.2 Sample Description: Find my book 118
Rules for 4.3.3 Collectors 122
4.4 Convergence 124
Convergence of 4.4.1 on native values 124
4.4.2 Convergence of reference streams 126
4.4.3 gathers to assemble the collector 131
4.5 Summary 132
5th Chapter Starting stream: Source and Division iterator 135
5.1 Create stream 136
5.2 Split iterators with Fork/join 145
5.3 Exception 149
5.4 Example Description: recursive grep 155
5.5 Summary 166
6th Chapter Flow Performance 167
6.1 Micro-Benchmark Metric 170
6.1.1 Metric Dynamic Runtime 171
6.1.2 Java microbenchmarking Harness 173
6.1.3 Test Method 174
6.2 Select execution Mode 178
6.3 Characteristics of the flow 181
6.4 Sort 184
6.5 stateful operation with stateless Operation 187
6.6 Box and unboxing 188
6.7 Split iterator Performance 189
6.8 Collector Performance 190
Merging of 6.8.1 concurrent maps 190
6.8.2 Profiling: Grouping 192 on points
6.8.3 Performance Analysis: Find my book 192
6.9 Summary 194
Chapter 7th using the default method to evolve API 195
7.1 Using the default method 199
7.2 What is the role of an abstract class 201
7.3 Syntax for the default method 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

Download address: Network disk download

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.