Re:Show HN: I Wrote a Book on Java
by vips7L on Monday September 23, 2024 @04:06PM
(#41629926)
You can enforce some invariants during construction:
or if you want to assert something is not null:
[ Parent
| on HN ]
I think records will be much more useful if https://openjdk.org/jeps/468 gets out of preview.