~/talk

Java Records for the Intrigued

Talkat Devoxx Ukraine 2021 · 2021-11-19..11-20· [java]
slides:none on file

Java Records become a standard feature in Java 16 and act as transparent carriers for immutable data with compiler-generated private final fields, accessors, equals, hashCode and toString; compact constructors let validators run without reassigning fields; records cannot extend or be extended, add instance fields, or provide setters. Jackson 2.12+ serializes/deserializes records via constructors without extra annotations, but JPA/Hibernate generally fails (no no-arg constructor), while Morphia and Spring Boot 2.5+ can work. Records lack a built-in copy/withers mechanism.

AI-written summary · about

  1. 0:00Introduction and speakers
  2. 1:02Talk overview and speaker intro
  3. 3:34What are Java Records?
  4. 7:05Record components and methods
  5. 10:39Record constructors and overrides
  6. 14:13Record limitations and restrictions
  7. 17:45Records vs JavaBeans and named tuples
  8. 20:16Nesting records and local records
  9. 24:30Reflection and annotations on records
  10. 26:37Serializing records with Jackson
  11. 31:16Records without copy methods
  12. 32:40Using records with frameworks
  13. 37:41Q&A session on records
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.