Java 14 - Records

preview_player
Показать описание
Coverage of the Java 14 - Records (JEP 359).
Summary:
01:16 - Examples overview
01:57 - Data containers - a desperate approach
03:31 - Data containers - a boilerplate approach
06:30 - Data containers - the records way
07:45 - Records properties
10:00 - Classes versus records (reduce your code to 15%)
Рекомендации по теме
Комментарии
Автор

For me it sounds like unnecessary feature :D
Only to reduce the code of bean classes? I think then I won't use them in the future.

They should implement things like the possibility to have properties and be able to use them inside of interfaces like C# already offers.

Chrizzonator
Автор

Not clear here why Records exist. What's the intended use case or killer application for Record objects ?
Records were hardly created just to save time spent writing and reading boilerplate.

benzflynn