Value Equality
noun
say it: “VAL-yoo ih-KWOL-ih-tee” /ˈvæljuː ɪˈkwɑləti/
Two separate objects counting as equal because they hold the same data.
What is value equality?
Value equality means two separate objects are equal when their data is equal: two member cards that both say Downtown, 1042. Its opposite, reference equality, counts only the very same object. Dictionary keys need value equality, with a hash code made from the same data.
In a sentence
- “A record has value equality, so a new card that says Downtown, 1042 finds the locker stored under the old one.”
Level: Journeyman · More Software Development terms at this level
Updated