Java records

GPTKB entity

Statements (25)
Predicate Object
gptkbp:instance_of gptkb:language
gptkbp:bfsLayer 4
gptkbp:bfsParent gptkb:javac
gptkbp:can_be static methods
instance methods
custom constructors
gptkbp:can_be_extended_by other classes
gptkbp:can_be_used_with pattern matching
gptkbp:communication using standard serialization
gptkbp:field final by default
gptkbp:formulation uses the 'record' keyword
https://www.w3.org/2000/01/rdf-schema#label Java records
gptkbp:improves code readability
gptkbp:introduced gptkb:Java_14
gptkbp:is_designed_to data transfer objects (DT Os)
gptkbp:is_implemented_in interfaces
gptkbp:is_part_of gptkb:Java_SE_16
gptkbp:nesting within other classes
gptkbp:producer equals() method
hash Code() method
to String() method
gptkbp:purpose to provide a compact syntax for data carriers
gptkbp:reduces boilerplate code
gptkbp:supports immutable data
gptkbp:type_of reference type