sealed
2 tutorials tagged “sealed”.
- Exhaustive Switch with Sealed TypesCover every subtype of a sealed interface without default, so the compiler flags each switch to update when a type is added. Includes an expression evaluator.
- Sealed Classes and Interfaces in JavaControl exactly which classes may extend a type with sealed and permits, the final, sealed and non-sealed rule, and exhaustive switches with no default.