This repository contains examples showcasing the pattern matching capabilities of Java after the release of Java 21.
In order to run the examples in this project you need to use JDK 21 with preview features enabled. If you're using IntelliJ IDEA, follow this tutorial to enable preview features.
These examples were presented during Voxxed Days CERN 2024.
- Presentation slides: https://docs.google.com/presentation/d/e/2PACX-1vR0o831cVEbjYvDrw5HuLEcJ0tBp5gTGznsVE4zbWDFsw_LD-9kdn3TDu7MTc3ikFSRz6QOmaVQiFFn/pub
- Oracle documentation about Pattern Matching: https://docs.oracle.com/en/java/javase/21/language/pattern-matching.html