coverpage
Learning Java Functional Programming
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Functional Programming
Aspects of functional programming
Java 8's support for functional style programming
Summary
Chapter 2. Putting the Function in Functional Programming
Lambda expressions usage
Functional programming concepts in Java
Lambda expressions revisited
Functional interfaces revisited
Summary
Chapter 3. Function Composition and Fluent Interfaces
Introduction to function composition
Creating composite functions prior to Java 8
Creating composite functions in Java 8
Fluent interfaces
Default methods and functions
Summary
Chapter 4. Streams and the Evaluation of Expressions
The Stream class and its use
Creating streams
Using the Stream class methods
Lazy and eager evaluation
Stream and concurrent processing
Summary
Chapter 5. Recursion Techniques in Java 8
Recursive data structures
Types of recursion
Understanding recursion
Recursion implementation techniques
When to use recursion
Recursion and humor
Summary
Chapter 6. Optional and Monads
Using the Optional class
Monads
Summary
Chapter 7. Supporting Design Patterns Using Functional Programming
Implementing the execute-around-method pattern
Implementing the factory pattern
Implementing the command pattern
Implementing the strategy pattern
Implementing the visitor pattern
Implementing the template pattern
Summary
Chapter 8. Refactoring Debugging and Testing
Refactoring functional code
Debugging lambda expressions
Using the println method to assist debugging
Testing functional programs
Summary
Chapter 9. Bringing It All Together
Functional Zork
The game's architecture
Summary
Epilogue
Index
更新时间:2021-07-09 21:44:25