Java AutoValue classes vs Kotlin Data classes

preview_player
Показать описание
Watch this video if you want to know what Java AutoValue classes. Also, you will learn the Kotlin "equivalent", data classes. Java has also just released record classes, which are more similar to Kotlin data classes.

Join the Coffee Bytez Patreon for exclusive content:

Substack:

Medium:

Discord:
Рекомендации по теме
Комментарии
Автор

We created AutoValue hoping it would be a stopgap until a good language feature came along... and here we are! If you still want AutoValue's builder generation you can still have it, but if you were using extensions you're out of luck. Just remember if migration that you have to `checkNotNull` your own params now.

kevinbn
Автор

Java has also just released record classes, which are more similar to Kotlin data classes.

coffeebytez
join shbcf.ru