Design Patterns – Value Object
Introduction
The Value Object pattern has, just like the Singleton, to do with referencing and instances. In a way, the Value Object is the opposite of the Singleton: its goal is to ensure NOT to use the same instance, under certain conditions.
Problem
How to prevent that objects serving as containers to certain values are unintentionally reused instead [...]