The latest JEP 359 outlines a new Java feature that may/will be implemented in some future versions of Java. The JEP suggests having a new type of "class": record.
You may also like: Java Records: Making Bad Designs More Convenient
The sample in the JEP reads as follows: