Wither Methods
Derived Record Creation with Wither Methods
JEP 468: Derived Record Creation
Records are immutable objects, so developers frequently create new records from old records to model new data. Derived creation streamlines code by deriving a new record from an existing record, specifying only the components that are different.
Tags: #java