State of pattern matching in Java
Slides from my Foojay JUG tour talk
Let's have a quick rundown of the two most exciting features landing in OpenJDK 17!
Pattern matching in Java is almost complete now. OpenJDK 16 added support for pattern matching in the instanceof operator and now this can be used in switch cases to perform idiomatic pattern matching, as in many other modern languages.
Let's see all the possibilities with it first and then we will look at the new Sealed classes and interfaces that let you restrict inheritance and learn how they can be useful in pattern matching.
Deepu K Sasidharan
September 28, 2021
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.