Table of Contents
Foreword |
Acknowledgments |
Preface |
Who’s This Book For |
What’s in This Book |
Java Version Used in This Book |
How to Read the Code Examples |
Online Resources |
1. | Hello, Lambda Expressions! |
Change the Way You Think |
The Big Gains of Functional-Style Code |
Why Code in the Functional Style? |
Evolution, Not Revolution |
A Little Sugar to Sweeten |
Recap |
2. | Using Collections |
Iterating through a List |
Transforming a List |
Finding Elements |
Reusing Lambda Expressions |
Using Lexical Scoping and Closures |
Picking an Element |
Reducing a Collection to a Single Value |
Joining Elements |
Recap |
3. | Strings, Comparators, and Filters |
Iterating a String |
Implementing the Comparator Interface |
Multiple and Fluent Comparisons |
Using the collect Method and the Collectors Class |
Listing All Files in a Directory ... |
Get Functional Programming in Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.