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

YouTube

The Art of Java Language Pattern Matching

Devoxx via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the advanced features of pattern matching in Java through this 42-minute Devoxx conference talk. Dive into the project Amber initiative within OpenJDK, which focuses on introducing productivity-oriented language features. Learn about the implementation of pattern matching in recent Java versions, including instanceof, switch expressions, and record patterns. Understand the fundamentals of pattern matching, its various types, and how it combines application code logic to test expressions and extract state components. Discover the power of switch expressions, flow scoping for binding variables, guarded patterns, and pattern dominance. Examine how pattern matching interacts with Java inheritance, records, and local variable type inference. Get insights into future developments like array patterns. By the end of this talk, gain the knowledge to effectively utilize these powerful new language features in your Java projects.

Syllabus

Intro
Pattern Matching Fundamentals
Pattern Types
Switch Expressions
Switch Expression (JDK 12)
Java Inheritance
Using The instanceof Operator
Pattern Matching For instanceof (JDK 14)
Flow Scoping For Binding Variables
Pattern Matching for switch (Completeness)
Guarded Patterns (JDK 18)
Pattern Dominance
Pattern Matching instanceof And Records
Patterns Are Composable
Patterns And Local Variable Type Inference
Using The Any Pattern Match
Pattern Matching For Arrays

Taught by

Devoxx

Reviews

Start your review of The Art of Java Language Pattern Matching

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.