Algebraic in Java: Pattern Matching


Chandra Guntur
BNY Mellon, Technical Fellow, Distinguished Engineer

Chandra is a technologist in the financial services industry since 2003 and is programming with Java since 1998.

Chandra was selected as a 2019 Java Champion. He is a Java User Group (JUG) Leader, and helps run one of the largest Java user groups, NYJavaSIG, and a founder-leader at the Garden State JUG.

Chandra conducts code workshops and Code Katas on core Java features. He is a frequent speaker at Java user groups, and technology conferences including Oracle CodeOne, Oracle Code NY, QCon New York, Devnexus, DawsCon, Jetbrains, and GIDS India.

Pattern Matching - the ability to detect a pattern and use it to compute, calculate or extract other values.

Previous versions of Java included a basic set of pattern matches, mostly relying on the developer to code the matches, the extraction or any other usage. Newer and upcoming versions of Java seem to bring in a lot more enhancements in this area and focus heavily on making Java more of a Functional-style language.

This talk is on Pattern Matching present and future, and may include speculative changes which may not compile yet (or ever). The intent is to share some ideas on Pattern Matching, some code samples and discuss the benefits and importance of these new language additions to the language.