博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Maurice Naftalin's Lambda FAQ
阅读量:5986 次
发布时间:2019-06-20

本文共 3672 字,大约阅读时间需要 12 分钟。

hot3.png

详细目录请看:

Your questions answered: all about Lambdas and friends

 

 

 

 

Fundamentals

Default Methods

Collections

Idioms and Techniques

Design Rationale

Advanced Questions

Meta

About the Lambda FAQ

Lambdas are now becoming a familiar part of the Java scenery. Java 8 shipped on March 18th this year, bringing with it the long-awaited feature of lambda expressions (aka closures). Together with the associated language and library features—streams and virtual extension methods—they are having a greater impact on how we program in Java than any other change in the history of the platform.

I initially started to learn about the new features so that Phil Wadler and I could consider a second edition of our book . But as I learned more about the subtleties of the changes, it became clear that an entire new book () was needed. Writing that has used up my spare cycles for nearly a year, but I’m happy now to turn my attention back to this FAQ. And though of course I’m urging you to buy the book, it’s not the end of wisdom on the subject: as I learn more and we get greater experience in using the new features, new understanding can be reflected here.

The new features weren’t all easy to understand at first, so this FAQ started with the intention of helping you over some of the obstacles that tripped me up. But then more advanced questions appeared, so I now hope that you will find it useful whether you are already familiar with lambda expressions or encountering them for the first time. All comments and contributions are welcome. I’m very pleased to acknowledge the continuing input from the Oracle Java Language and Tools team, especially and Brian Goetz; their collaboration is helping to greatly improve the scope and accuracy of this document. (Of course, all errors and omissions are my responsibility.)  I will be happy to include and acknowledge your contribution too. But please be aware that anything on this website may yet end up as part of the material of a new edition of Java Generics and Collections.

What’s the Purpose of this FAQ?

The question-and-answer format is intended to serve two purposes;

  • It’s a tutorial: if you’re starting from scratch in learning about the upcoming changes to Java, you should be able to start with , “What is a lambda expression?” and get a tutorial introduction by following the “next” link at the top right of each page;

  • It’s a reference: if you want an answer to a particular technical question, jump straight to it. Since the Oracle team are also reading these answers, it’s reasonable to expect that this will become an authoritative popular reference to what’s going to happen.

    • As part of the reference material, there’s a , where I will maintain up-to-date links with the various rapidly-changing useful resources: documentation, presentations, build and download resources, tool support and mailing lists.

The tutorial sequence is divided into topics, to be read in the sequence listed below and in the left-hand sidebar on every page, which also corresponds to the “next” and “previous” links at the top of each post. An exception is the topic of “Design Rationale”; some questions here can also be found in the tutorial sequence, others are free-standing.

What’s Your Question?

Let me know what you think of this resource, how it could be improved, and what questions you would like to see answered here.

1: Fundamentals of Lambda Expressions

2: Default Methods

3: Collections

Questions about Design Rationale

(Questions labelled “(t)” are also included in the tutorial sequence above)

(t)

(t)
(t)

Advanced Topics

Copyright © 2015 - All Rights Reserved
Powered by &            

转载于:https://my.oschina.net/doctor2014/blog/410261

你可能感兴趣的文章
PL/pgSQL学习笔记之五
查看>>
Android 经验: 5555 端口会被 adb 误认为 emulator
查看>>
Android手机便携式wifi的使用及无线数据传输(主要针对XP系统)
查看>>
MFC控件(8):command button与syslink control
查看>>
Java生成唯一GUID
查看>>
str_replace使用
查看>>
[Head First设计模式]一个人的平安夜——单例模式
查看>>
Asp.Net Web API 2第四课——HttpClient消息处理器
查看>>
图例解析四大UML关系【转】
查看>>
微信公共服务平台开发(.Net 的实现)4-------语音识别
查看>>
linux 添加用户
查看>>
[转]大小端问题
查看>>
C#从SQL server数据库中读取l图片和存入图片
查看>>
paip.自适应网页设计 跟 响应式 设计的区别跟原理and实践总结
查看>>
Frameworks 目录
查看>>
Android -- SharedPreferences存储信息
查看>>
C++的函数重载和main函数之外的工作
查看>>
js中的hasOwnProperty和isPrototypeOf方法
查看>>
杂七杂八的面试概念
查看>>
递归算法浅谈
查看>>