r/java • u/davidalayachew • Jul 16 '26
Identifying JDK value class candidates
https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
53
Upvotes
View all comments
Show parent comment
6
u/davidalayachew Jul 16 '26
This is a much better candidate. Yes, the
KeyValueHolderclass returned byMap.entry(key, value)could definitely be a value class.