Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Refactoring to Java 8

JetBrains via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the benefits of Java 8 in this 71-minute conference talk by Trisha Gee. Learn how to automatically refactor code to leverage Java 8 features, comparing performance and readability before and after. Discover the advantages of lambda expressions, stream operations, and new collection methods. Gain insights into safety checks, designing for lambdas, and optimizing various loop constructs. Analyze the readability and performance implications of different refactoring approaches, including Stream.forEach, Stream.collect, Stream.anyMatch, Stream.findFirst, and Collection.removeIf. Conclude with a summary of findings and a Q&A session to deepen your understanding of effective Java 8 refactoring techniques.

Syllabus

Why Java 8
Safety checks
Refactoring to Lambda expressions
Performance of Lambda expressions
Designing for Lambda expressions
Refactoring “for” loop to Stream.forEach
Readability and performance: Stream.forEach vs “for” loop
Refactoring “for” loop to Stream.collect
Readability and performance: Stream.collect vs “for” loop
Collapsing multiple operations
Readability and performance: multiple operations
Refactoring “for” loop to Stream.anyMatch
Readability and performance: “for” loop vs Stream.anyMatch
Refactoring “for” loop to Stream.findFirst
Readability and performance: “for” loop vs Stream.findFirst
Refactoring to Collection.removeIf
Readability and performance: Collection.removeIf
Summary of findings
Q & A

Taught by

IntelliJ IDEA by JetBrains

Reviews

Start your review of Refactoring to Java 8

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.