Java Records

GPTKB entity

Statements (27)
Predicate Object
gptkbp:instanceOf Java language feature
gptkbp:automaticallyGenerates toString()
accessor methods
equals()
hashCode()
gptkbp:cannotDeclare explicit setters
instance fields
gptkbp:cannotExtend other classes
gptkbp:compatibleWith abstract
generic
Java versions before 14
gptkbp:fieldsAre private
final
gptkbp:hasSyntax record Point(int x, int y) {}
https://www.w3.org/2000/01/rdf-schema#label Java Records
gptkbp:implementedIn interfaces
gptkbp:introducedIn gptkb:Java_14
preview feature
gptkbp:partOf gptkb:Project_Amber
gptkbp:purpose model immutable data
gptkbp:standardizedBy gptkb:Java_16
gptkbp:supportedBy gptkb:OpenJDK
gptkb:javac
gptkbp:usedFor data transfer objects
value-based classes
gptkbp:bfsParent gptkb:Glen_Ballard
gptkbp:bfsLayer 6