JEP 433: Pattern Matching für switch in JDK 20
JEP 433: Pattern Matching for switch targeted to JDK 20 "Enhance the Java programming language with pattern matching for switch expressions and statements. Extending pattern matching to switch allows an expression to be tested against a number of patterns, each with a specific action, so that complex data-oriented queries can be expressed concisely and safely." https://openjdk.org/jeps/433