DEV Community

loading...

Discussion on: Generating data classes in Java

Collapse
bertilmuth profile image
Bertil Muth Author

I am glad you found it interesting - I recently read the article you referenced, I didn’t know about Java 12‘s record before. It looks like a spitting image of Kotlin.

Code generation is useful beyond it, of course, it was just a simple example.

Collapse
lemuelogbunude profile image
Lemuel Ogbunude

We weren't promised that Java 12 would have Records, it's something they are looking at though, if not in Java 12 then in Java 13+. For now, we could use your solution :).

Thread Thread
bertilmuth profile image
Bertil Muth Author

Good to know, thanks.