Java 21 is the first Java release with all essential pattern matching features finalized: sealed types and type patterns in an improved switch; also final (and very helpful) are records and record patterns. We'll explore how these language features come together to allow pattern matching, what that means for Java developers, and how we can push these features further to implement a new (to Java) programming paradigm: data-oriented programming.
#RoadTo21 playlist: • Road to 21
~~~ Chapters ~~~
0:00 Intro
1:31 Language Features
extended instanceof: https://openjdk.org/jeps/394
switch expression: https://openjdk.org/jeps/361
patterns in switch: https://openjdk.org/jeps/441
sealed types: https://openjdk.org/jeps/409 & • Sealed Classes - JEP Café #2
9:09 Pattern Matching
13:41 Data-oriented Programming
records: https://openjdk.org/jeps/395
record patterns: https://openjdk.org/jeps/440
data-oriented programming: https://www.infoq.com/articles/data-o... & • Data-Oriented Programming - Inside Java Ne...
unnamed patterns: https://openjdk.org/jeps/443
22:19 Outro
Tags: #Java #Java21 #Design #CleanCode #OpenJDK
Sur cette page du site, vous pouvez voir la vidéo en ligne Java 21 Pattern Matching Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java 17 septembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 31,140 fois et il a aimé 1 mille téléspectateurs. Bon visionnage!