Java 17 to 20 Pattern Matching Full tutorial with Records, Instanceof and Switch - JEP Café #14

Описание к видео Java 17 to 20 Pattern Matching Full tutorial with Records, Instanceof and Switch - JEP Café #14

How Pattern Matching is slowly changing the way you can write Java programs. This JEP Café tutorial covers Pattern Matching for Instanceof, Pattern Matching for Switch, Type Patterns, and Record Patterns.

⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯

0:00 Intro
0:48 Introducing Pattern Matching and the Project Amber
1:26 Pattern Matching for Intanceof
3:33 Generics, Lambdas and Pattern Matching
6:05 Defining the elements of a Pattern
7:34 Using the binding variable of a Pattern
9:02 Pattern Matching for Switch
10:38 Switching on a Sealed Type
10:56 Handling null values in switches
11:12 Using when to add boolean expressions to case labels
12:06 Introducing Records and Record Patterns
13:31 Using a Record Pattern in Instanceof
14:47 Using a Record Pattern in Switch Case label
15:15 Nesting Record Patterns
16:12 Record Patterns and Enhanced For Statements
18:14 Wrapping Up patterns and where to use them
19:24 Final words and outro


⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯
◦ Project Amber ➱ https://openjdk.org/projects/amber
◦ Text Blocks ➱ https://openjdk.org/jeps/378
◦ Switch Expressions ➱ https://openjdk.org/jeps/361
◦ Records ➱ https://openjdk.org/jeps/395
◦ Sealed Types ➱ https://openjdk.org/jeps/309
◦ Pattern Matching for Instanceof ➱ https://openjdk.org/jeps/394
◦ JEP Café on Records ➱    • Records Patterns, Performance and Ser...  
◦ Dev.java ➱ https://dev.java
◦ Inside.java ➱ https://inside.java
◦ JDK 19 ➱ https://openjdk.org/projects/jdk/19
◦ JDK 20 ➱ https://openjdk.org/projects/jdk/20
◦ OpenJDK ➱ https://openjdk.org
◦ Oracle Java ➱ https://www.oracle.com/java/

Tags: #Java #Java17 #Java20 #OpenJDK #JDK #JDK17 #Records #PatternMatching #ConcurrentProgramming #JEPCafe #insidejava

Комментарии

Информация по комментариям в разработке