JEP 397: Sealed Classes (Preview)
GPTKB entity
Statements (61)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Java_2_Platform
|
gptkbp:addresses |
Class hierarchy issues
|
gptkbp:aims_to |
Enhance type safety
|
gptkbp:allows |
Restricting which classes can extend a class
|
gptkbp:author |
gptkb:Brian_Goetz
|
gptkbp:benefits |
Improved maintainability
|
gptkbp:discusses |
gptkb:Java_Community_Process
|
gptkbp:encourages |
Refactoring
Design patterns Best practices Collaboration among developers Code reuse Better error handling Better API design |
gptkbp:enhances |
User experience
Type safety Developer productivity Type system Software design principles |
gptkbp:example |
Sealed interfaces
|
gptkbp:facilitates |
Testing and debugging
Domain-driven design Code maintenance |
gptkbp:feedback |
Community feedback encouraged
|
gptkbp:impact |
Java developers
|
gptkbp:improves |
Code readability
Software quality API stability |
gptkbp:influences |
Java language evolution
Future Java features |
gptkbp:introduced_in |
gptkb:Java_SE_17
|
gptkbp:is_implemented_in |
gptkb:JDK_17
|
gptkbp:key_feature |
Control subclassing
|
gptkbp:promotes |
Encapsulation
Code clarity Code consistency Code standards |
gptkbp:proposed_by |
Sealed Classes in Java
|
gptkbp:provides |
Improved performance
Better documentation Clearer intent in code More control over class hierarchies |
gptkbp:reduces |
Runtime errors
Complexity in class hierarchies |
gptkbp:related_concept |
Pattern Matching
|
gptkbp:related_to |
gptkb:JEP_360
gptkb:JEP_409 |
gptkbp:released |
gptkb:Java_17
|
gptkbp:requires |
Compiler support
Java Language Specification update |
gptkbp:specification |
Sealed Class Specification
|
gptkbp:status |
gptkb:Preview
|
gptkbp:supports |
Modular programming
Code optimization Code scalability Functional programming paradigms Sealed interfaces Exhaustive pattern matching |
gptkbp:bfsParent |
gptkb:Java_15
gptkb:Java_SE_15 |
gptkbp:bfsLayer |
5
|