![]() Properly writing such a data-carrier class involves a lot of low-value, repetitive, error-prone code: constructors, accessors, equals, hashCode, toString, etc. Records can be thought of as nominal tuples.Īnother quote from the JEP clearly explains developers' frustration while writing typical data carrier classes. They act as transparent carriers for immutable data with less ceremony than normal classes. ![]() Records are a new kind of class in the Java language. So let's discuss what's the fuss is about Java Records. ![]() For some more Java and tech-related stuff, follow me on Twitter
0 Comments
Leave a Reply. |