Records: Data classes in Java | Bye Lombok? | Explanation + Tutorial

preview_player
Показать описание
In this episode we look at Records in Java, introduced in Java 14.
How to use records, the amazing advantages and what are their limitations.

Follow me!
Рекомендации по теме
Комментарии
Автор

I don't see a default constructor in when we Crete an object with record

narendrak
Автор

New sub! Nice info, thanks for sharing

dehorian_stories
Автор

The learning gap between Java and kotlin is getting smaller and smaller

nanonkay
Автор

Hi, Mati. I liked the video. It's very clear. Could you please explain better why you avoid using Lombok?

gustavolobos
Автор

That's a good introduction to Records, but you don't really say why you think this is better than Lombok. Not only moving away from classes you lose the powers of inheritance, but without Lombok you lose builders, which are awesome if you're dealing with models with many fields.
Not to mention records' alternative to overriding equals/hashcode when not using all fields is much more verbose than using Lombok annotations.

ronySky_
Автор

A small inaccuracy... records haven introduced in JDK 14 as preview feature and finalized in JDK 16...

khmarbaise
visit shbcf.ru