这是我参与11月更文挑战的第9天,活动详情查看:2021最后一次更文挑战
前言
JSR 335
所谓的 JSR (Java Specification Requests) 全称叫做 Java 规范提案。简单来说就是向 Java 社区提交新的 API 或 服务 请求的提案。这些提案将作为 Java 社区进行 Java 语言开发的需求,引导着开发的方向。
JSR 335 的提案内容摘要如下:
This JSR will extend the Java Programming Language Specification and the Java Virtual Machine Specification to support the following features:
- Lambda Expressions
- SAM Conversion
- Method References
- Virtual Extension Methods
也就是如下几点:
- 支持 lambda 表达式。
- 支持 SAM conversion 用来向前兼容。
- 方法引用 Method References
- Virtual Extension Methods
在 Java 8 中,以上均已经实现,以上内容下文均有介绍。
www.oracle.com/java/techno…
这边主要是作为一个概览后面会将下面lambda的一系列教程翻译一遍。
- Mary Had a Little Lambda by Stephen Chin
- Get familiar with lambdas and the Stream API through a simple game.
- Lambdas, Part 1 by Ted Neward
- Get to know lambda expressions in Java 8.
- Lambdas, Part 2 by Ted Neward
- Learn how to use lambda expressions to your advantage.
- State of the Lambda by Brian Goetz
- OTN Interview with Brian Goetz
- Java Chief Language Architect Brian Goetz takes on the question of why lambda expressions took so long to implement and how lambdas will impact developers.
- Collection enhancements leveraging Lambda Expressions – or: How Java emulates SQL by Lucas Jellema
- Lambdas introduce a powerful Inversion of Control in Java – allowing a clear and elegant distinction between the what [should be done] and how [should it be done]. Under certain circumstances Java is very similar to SQL!
-
NightHacking Worldwide: Lambdas Part 1, Presentation
-
NightHacking Worldwide: Lambdas Part 2, Q&A
-
Java 8 Lambdas Pragmatic Functional Programming by Richard Warburton (Early Access Edition)
-
This book shows you how to make use of your existing skills to adapt your thinking and codebase to use Lambda expressions properly.