Table of Contents
Refactoring to Modern Java: Introduction
Chapter: Lesson 1: Getting Started—Why and How
1.1 Why Java 8?
1.3 Project Code
Chapter: Lesson 2: Refactor Using the New Features
2.1 Lambda Expressions
2.2 Collections and the Streams API
2.3 Getting to Grips with Optional
Chapter: Lesson 3: Understanding Java 8 Performance
3.1 Performance of Anonymous Inner Classes versus Lambda Expressions
3.2 Performance of Lazy Methods
3.3 Performance of a For Loop versus the Stream API
3.4 Performance of Operations Performed in Serial and in Parallel
3.5 Performance of Optional Safety versus Comparing to Null
Chapter: Lesson 4: Pros and Cons
4.1 Do Java 8 idioms make the code more readable?
4.2 Do Java 8 features give better performance?
4.3 Does Java 8 make it easier to write code?
4.4 Can code be automatically refactored to Java 8?
Chapter: Summary: Should you modernize your code?
Refactoring to Modern Java: Summary