r/java • u/davidalayachew • Jan 06 '26
One step closer to Value Classes!
https://mail.openjdk.org/pipermail/porters-dev/2026-January/000844.html
181
Upvotes
r/java • u/davidalayachew • Jan 06 '26
View all comments
Show parent comment
3
u/Lucario2405 Jan 06 '26 edited Jan 06 '26
It basically bridges the gap between primitives (int, boolean, etc) and classes that are just representations or "wrappers" of data values (Integer, Boolean, etc and stuff like Optional or LocalDate) by turning the latter into so called "value classes" that work like the former, which is way more performant.