~/talk

Java Records for the intrigued

Talkat JPoint 2021 · 2021-04-13..04-17· [java]
slides:none on file

Java 16 makes Records a standard, generating private final fields, accessors, canonical constructors and equals/hashCode/toString so you stop writing boilerplate; compact constructors let you validate without reassigning fields; Records are final, can’t be extended or declare instance fields, and don’t follow JavaBeans (Introspector won’t find getters). Reflection exposes getRecordComponents, Jackson 2.12 already serializes/deserializes Records out of the box, and Java serialization invokes the constructor during deserialization. Records fit DTOs and value carriers but not JPA entities; Lombok builders need workarounds.

AI-written summary · about

  1. 0:00Introduction and Java updates
  2. 4:25What are Java records
  3. 11:16Record demo and basics
  4. 13:01What records can do
  5. 25:24What records cannot do
  6. 33:14Records vs Java beans
  7. 34:56Nesting records and local classes
  8. 39:16Reflection and annotations on records
  9. 49:53Serialization of records
  10. 53:09JSON serialization with Jackson
  11. 1:00:15Records for database models and DTOs
  12. 1:05:58Records with sealed classes and pattern matching
  13. 1:09:48Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.