Functional Programming in Java Front Cover

Functional Programming in Java

  • Length: 160 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2014-03-01
  • ISBN-10: 1937785467
  • ISBN-13: 9781937785468
  • Sales Rank: #229692 (See Top 100 Books)
Description

Intermediate level, for programmers fairly familiar with Java, but new to the functional style of programming and lambda expressions.

Get ready to program in a whole new way. Functional Programming in Java will help you quickly get on top of the new, essential Java 8 language features and the functional style that will change and improve your code. This short, targeted book will help you make the paradigm shift from the old imperative way to a less error-prone, more elegant, and concise coding style that’s also a breeze to parallelize. You’ll explore the syntax and semantics of lambda expressions, method and constructor references, and functional interfaces. You’ll design and write applications better using the new standards in Java 8 and the JDK.

Lambda expressions are lightweight, highly concise anonymous methods backed by functional interfaces in Java 8. You can use them to leap forward into a whole new world of programming in Java. With functional programming capabilities, which have been around for decades in other languages, you can now write elegant, concise, less error-prone code using standard Java. This book will guide you though the paradigm change, offer the essential details about the new features, and show you how to transition from your old way of coding to an improved style.

In this book you’ll see popular design patterns, such as decorator, builder, and strategy, come to life to solve common design problems, but with little ceremony and effort. With these new capabilities in hand, Functional Programming in Java will help you pick up techniques to implement designs that were beyond easy reach in earlier versions of Java. You’ll see how you can reap the benefits of tail call optimization, memoization, and effortless parallelization techniques.

Java 8 will change the way you write applications. If you’re eager to take advantage of the new features in the language, this is the book for you.

What you need:

Java 8 with support for lambda expressions and the JDK is required to make use of the concepts and the examples in this book.

Table of Contents

Chapter 1. Hello, Lambda Expressions!
Chapter 2. Using Collections
Chapter 3. Strings, Comparators, and Filters
Chapter 4. Designing with Lambda Expressions
Chapter 5. Working with Resources
Chapter 6. Being Lazy
Chapter 7. Optimizing Recursions
Chapter 8. Composing with Lambda Expressions
Chapter 9. Bringing It all Together
A1. Starter Set of Functional Interfaces
A2. Syntax Overview
A3. Web Resources

To access the link, solve the captcha.