Comment Comment by nextaccountic Does Java sealed classes enable something like an exhaustive pattern matching? (A form of pattern matching that will fail at compile time if you add a new class that extends the sealed class) parent nextaccountic 2 years ago