JEP 368: Sealed Classes

GPTKB entity

Statements (55)
Predicate Object
gptkbp:instance_of gptkb:Java_2_Platform
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:concluded_on September 2021
gptkbp:enables more predictable class behavior
gptkbp:enhances the expressiveness of the type system
gptkbp:feature 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
supports better class design
reduces the risk of misuse of APIs
gptkbp:improves type safety in Java
gptkbp:is_a_solution_for class hierarchy management
gptkbp:is_a_subject_of Java community discussions
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:Java_programming_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:Java_programming_language
gptkbp:notable_changes 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:provides_a_mechanism_for defining a hierarchy of classes
gptkbp:requires the use of the 'permits' clause
gptkbp:supports better maintenance of code
gptkbp:bfsParent gptkb:JDK_17
gptkbp:bfsLayer 5