JEP 368: Sealed Classes

GPTKB entity

Statements (55)
Predicate Object
gptkbp:instance_of gptkb:Java_Enhancement_Proposal
gptkbp:bfsLayer 4
gptkbp:bfsParent gptkb:JDK_17
gptkbp:aims_to control which classes can extend or implement a class or interface
gptkbp:allows restricting subclassing
gptkbp:can_be_used_with records
gptkbp:defense_mechanism defining a hierarchy of classes
gptkbp:enables more predictable class behavior
gptkbp:ends_at September 2021
gptkbp:enhances the expressiveness of the type system
gptkbp:features gptkb:Java_17
enhances developer productivity
promotes better software architecture
reduces boilerplate code
supports better code organization
encourages the use of interfaces
enhances encapsulation
facilitates better API design
improves code maintainability
promotes better software design practices
reduces the risk of misuse of AP Is
supports better class design
gptkbp:improves type safety in Java
gptkbp:is_a_solution_for class hierarchy management
gptkbp:is_aimed_at improving code readability
gptkbp:is_designed_for API designers
gptkbp:is_documented_in Open JDK documentation
gptkbp:is_implemented_in gptkb:language
gptkbp:is_influenced_by object-oriented programming principles
gptkbp:is_part_of gptkb:Java_SE_17
Java language enhancements
Java's feature set
Java's modernization efforts
Java's ongoing evolution
Java's class hierarchy management.
Java's class structure enhancements
Java's feature set expansion
Java's language evolution
Java's language features
Java's programming model
Java's type safety improvements
Java's type system evolution
Java's type system improvements
gptkbp:is_related_to JEP 409: Sealed Interfaces
JEP 1100: Pattern Matching for instanceof
JEP 220: Modular Source Code
gptkbp:is_supported_by gptkb:language
gptkbp:notable_for Java class design
gptkbp:proposed_by gptkb:JDK_17
Sealed classes and interfaces in Java
aims to improve Java's type system
gptkbp:provides a way to define a closed set of subclasses
gptkbp:requires the use of the 'permits' clause
gptkbp:subject Java community discussions
gptkbp:supports better maintenance of code