Java sealed classes and exhaustive pattern matching | Dark Hacker News