Pattern Matching for Java




More at https://cr.openjdk.java.net/~briangoetz/amber/pattern-match.html