Intent Provide objects which follow value semantics rather than reference semantics. This means value objects’ equality is not based on identity. Two value objects are equal when they have the same value, not necessarily being the same object.
Explanation Real-world example
There is a class for hero statistics in a role-playing game. The statistics contain attributes such as strength, intelligence, and luck. The statistics of different heroes should be equal when all the attributes are equal.