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

YouTube

Optional - The Mother of All Bikesheds

Devoxx via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This session explains the history and rationale of Java’s Optional class, with examples of effective usage and common antipatterns. It also covers refactoring Optional code and current and proposed work for Java 9.

Syllabus

Introduction
Overview
Optional
Why Optional
Refactoring
What is Optional
Using Optional
Range of Use Cases
Optional Exceptions
Optional Methods
Optional Map
Optional Filter
IfPresent
Other Methods
Stream Methods
Optional of Nullable
Avoiding Ordinary If Statements
Writing the Code
Problem with Optional
Optional Get
Other Issues
Overuse of Optional
Bike Shading
Fields
Blogs
Wrapup

Taught by

Devoxx

Reviews

Start your review of Optional - The Mother of All Bikesheds

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.