Type conversion in Java – an alternative proposal for primitive type patterns
A lot of good work has been done by the core Java team on patterns, providing new ways to explore data. The latest extension, in JEP 507, is the idea that primitive type patterns should be supported. Here an alternative approach.