Glossary: Java Beyond the Basics
Record
Also written: records
A small class that holds data and automatically gets equals, hashCode and toString. Records are immutable and can't extend a class.
Glossary: Java Beyond the Basics
Also written: records
A small class that holds data and automatically gets equals, hashCode and toString. Records are immutable and can't extend a class.