~/talk

Java Records for the Intrigued

Talkat Devoxx Poland 2021 · 2021-08-25..08-27· [java]
slides:none on file

Java Records become a standard type in Java 16 (JEP 395), generate private final fields, accessors, canonical constructors and equals/hashCode/toString by default, and reconstruct via constructor during Java serialization. Records are final, cannot declare extra instance fields or extend classes, but can be nested, generic, implement interfaces and simplify stream accumulators (demo replaces a multi-line accumulator class with a one-line local record). Jackson 2.12+ and many libraries support records out of the box; JPA entities still fail (no no-arg constructor), and mutable components break hashing, producing surprising duplicate entries in sets.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:35What are Java Records
  3. 7:52Records vs Java Beans
  4. 10:01First demo of Records
  5. 13:52Basics and possibilities of Records
  6. 21:15Limitations of Records
  7. 24:01Nesting and local Records
  8. 28:58Reflection on Records
  9. 31:47Annotations with Records
  10. 32:09Serialization of Records
  11. 37:49JSON serialization with Jackson
  12. 39:14Records and libraries adaptation
  13. 40:39Records with pattern matching
  14. 42:03Hash code and equals behavior
  15. 43:26Mutable fields in Records
  16. 46:17Records as ORM entities
  17. 48:48Records in REST APIs
  18. 51:15Q&A and closing remarks
~/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.