JavaJava
Byte size15min
INTERMEDIATE

The record: migrate to immutability

This talk explores Java 16 records, outlining their benefits over POJOs, when to migrate, and maintaining immutability in collections. It also discusses Lombok’s ongoing role and offers practical migration strategies to help developers maximize the advantages of records while minimizing effort during code transition.

Johan Hutting
Johan HuttingING

talkDetail.whenAndWhere

Thursday, April 2, 10:50-11:05
Zaal 4
talks.roomOccupancytalks.noOccupancyInfo
talks.description
JEP-395 in Java 16 brought us records to store and model immutable data, allowing developers to replace POJO's in many cases.

In this lightning talk we'll cover the benefits of records, when to migrate towards them and when to retain POJO's. Ensuring your collections remain immutable is also covered, as well as how Lombok could still fit in.

We'll also learn about the various ways to migrate your old code, or prepare them for a later migration easing the amount of work while gaining the maximum amount of benefits from records.
pojo
migration
immutable
records
talks.speakers
Johan Hutting

Johan Hutting

ING

Netherlands

Developer advocate with more than 15 years of experience designing, developing and maintaining Android, Java SE/EE and Spring applications. Strong focus on getting things done with the Agile mindset. Love to share knowledge on the latest Java language, EE and Spring improvements by giving workshops and talks as well as participating in them.

talkDetail.rateThisTalk

talkDetail.poortalkDetail.excellent

talkDetail.ratingNotYetAvailable

talkDetail.ratingAvailableWhenStarted

talkDetail.signInRequired

talkDetail.signInToRateDescription

occupancy.title

occupancy.votingNotYetAvailable

occupancy.votingAvailableBeforeStart

talkDetail.signInRequired

occupancy.signInToVoteDescription

comments.title

comments.speakerNotEnabledComments