
Learning Java Lambdas
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Person
Toby Weston - Independent Software DeveloperI specialise in modern software development; functional and object-oriented programming, agile and lean best practice. I wrote the book Essential Acceptance Testing and have written for magazines as well as regularly blogging.I've been part of the software industry for more than fifteen years and love what I do. I love talking and writing about it and sharing my experiences online with Udemy.
Content
- Cover
- Copyright
- Credits
- About the Author
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Introduction
- The road to modern Java
- Modern Java features
- Chapter 2: Lambdas Introduction
- ?s in functional programming
- 1930s and the lambda calculus
- 1950s and LISP
- What is a lambda
- Functions vs classes
- Lambdas in modern Java
- Some theoretical differences
- Functions vs classes
- Some concrete differences
- Capture semantics
- Shadowed variables
- Summary
- ? basic syntax
- Syntax breakdown
- Summary
- Chapter 3: Lambdas in Depth
- Functional interfaces
- @FunctionalInterface
- Extension
- Other interface improvements
- Summary
- Type inference improvements
- Java type inference
- Target-typing for lambdas
- Type parameters in method calls
- Type parameters in chained method calls
- Method references
- Example
- Method reference types
- Constructor reference
- Static method reference
- Instance method reference of particular object (in this case, a closure)
- Instance method reference of a arbitrary object whose instance is supplied later (lambda)
- Summary
- Scoping
- Effectively final
- Circumventing final
- Exception handling
- Using a callback
- Dealing with exceptions when writing lambdas
- As a caller (dealing with exceptions when calling lambdas)
- Lambdas vs closures
- Basic differences
- Other differences
- Summary
- Bytecode recap
- Descriptors
- Converting a method signature
- Code examples
- Example 1
- Example 2
- Example 3
- Example 4
- Example 4 (with method reference)
- Example 5
- Summary
- Appendix: Bytecode
- WaitFor
- Example 1
- Example 2
- Example 3
- Example 4
- Example 4 (with Method Reference)
- Example 5
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.