New candidate JEP: 406: Pattern Matching for switch (Preview)
Posted on March 26, 2021
Enhance the Java programming language with pattern matching for switch expressions and statements, along with extensions to the language of patterns. 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.…
More at https://mail.openjdk.java.net/pipermail/jdk-dev/2021-March/005255.html