Java Closures and Lambda

Java Closures and Lambda

4.11 - 1251 ratings - Source

Java Closures and Lambda introduces you to significant new changes to the Java language coming out of what is termed Project Lambda. These new changes make their debut in Java 8, and their highlight is the long-awaited support for lambda expressions in the Java language. Youa€™ll learn to write lambda expressions and use them to create functional interfaces and default methods for evolving APIs, among many other uses. The changes in Java 8 are significant. Syntax and usage of the language are changed considerably with the introduction of closures and lambda expressions. This book takes you through these important changes from introduction to mastery. Through a set of clear examples, youa€™ll learn to refactor existing code to take advantage of the new language features. Youa€™ll learn what those features can do for you, and when they are best applied. Youa€™ll learn to design and write new code having these important new features in mind from the very beginning. Clearly explains the fantastic benefits resulting from Project Lambda Explains the syntax and IDE support for the new features Shows how to streamline your code by bringing some of the benefits of functional programming to the Java language Illustrates parallelism in closures through Stream and Spliterator objects Explains API evolution by adding methods to existing interfaces without breaking existing interface implementations, a technique addressing potential multiple inheritance issues What youa€™ll learn Encapsulate key bits of logic into anonymous functions without the need for anonymous classes Define closures to be used as generators of comparison functions Define map, filter, and reduce functions that are useful in working with lists and other collections Trap and handle exceptions involving lambdas and closures, including the passing of exception-type parameters Anticipate and provide for concurrency so that your code successfully scales across multiple CPU cores Refactor existing code to take advantage of newly-possible closures and lambda expressions Who this book is for This book is aimed at Java developers interested in keeping up with the latest developments in the language. The book is of particular interest to those wanting to produce shorter and more readable code by taking advantage of language enhancements coming out of Project Lambda. Table of Contents Chapter 1: Java 8: Ita€™s a Whole New Java Chapter 2: Understanding Lambdas in Java 8 Chapter 3: Lambdaa€™s Domain: Collections and Streams Chapter 4: File I/O with Lambdas Chapter 5: Data Access with Lambdas Chapter 6: Lambda Concurrency Chapter 7: Legacy to Lambdas Chapter 8: Lambdas in Java ByteCode Appendix A: Contrasting ParadigmsThe Java programming language is, at its core, a series of instructions. These instructions are executed in sequence. By default, you only ever have one of these series going at a time. However, if you have multiple processing cores on youranbsp;...

Title:Java Closures and Lambda
Author: Robert Fischer
Publisher:Apress - 2015-03-04

You must register with us as either a Registered User before you can Download this Book. You'll be greeted by a simple sign-up page.

Once you have finished the sign-up process, you will be redirected to your download Book page.

How it works:
  • 1. Register a free 1 month Trial Account.
  • 2. Download as many books as you like (Personal use)
  • 3. Cancel the membership at any time if not satisfied.

Click button below to register and download Ebook
Privacy Policy | Contact | DMCA