Skip to content

Commit 3b2b075

Browse files
committed
wither methods
1 parent c56862a commit 3b2b075

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

posts/wither_methods.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Wither Methods
3+
summary: Derived Record Creation with Wither Methods
4+
date_published: 2025-03-06T11:40:28+01:00
5+
keywords:java
6+
---
7+
8+
# [%title]
9+
10+
[%summary]
11+
12+
[JEP 468: Derived Record Creation](https://openjdk.org/jeps/468)
13+
14+
> 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.
15+
16+
[The Wither approach](https://www.sonarsource.com/blog/builders-withers-and-records-java-s-path-to-immutability/#the-wither-approach)
17+
18+
[Java Withers - Java Newscast](https://nipafx.dev/inside-java-newscast-67/)

0 commit comments

Comments
 (0)