Skip to content

Glossary: Java Beyond the Basics

Sealed

Also written: sealed interface, permits

A sealed type lists with permits every type allowed to implement it, so a switch over it can be checked for completeness without a default.

Where the book teaches it

Related terms

ExhaustivePattern matching