Java Records

GPTKB entity

Statements (25)
Predicate Object
gptkbp:instance_of gptkb:language
gptkbp:can_be instance fields
gptkbp:can_be_extended_by other classes
gptkbp:can_be_used_with pattern matching
gptkbp:communication to JSON
gptkbp:enhances data encapsulation
gptkbp:features Java SE 14 and later
gptkbp:formulation uses 'record' keyword
https://www.w3.org/2000/01/rdf-schema#label Java Records
gptkbp:introduced gptkb:Java_14
gptkbp:is_designed_for data transfer objects
gptkbp:is_implemented_in interfaces
gptkbp:is_part_of gptkb:Project_Loom
gptkbp:is_similar_to gptkb:data_classes_in_Kotlin
gptkbp:is_used_in Java applications
gptkbp:producer equals() method
hash Code() method
to String() method
gptkbp:provides a concise way to model data
gptkbp:purpose to create immutable data classes
gptkbp:reduces code in Java applications
gptkbp:supports compact constructors
record components
gptkbp:bfsParent gptkb:The_Shouting_Matches
gptkbp:bfsLayer 5