Interface ValueObject<T>
- Type Parameters:
T
- the type of value object
- All Superinterfaces:
DomainObject<T>
- All Known Implementing Classes:
AbstractValueObject
A domain-driven design value object, i.e., an immutable object that contains attributes but has no conceptual identity.
- Author:
- RealLifeDeveloper
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasSameValueAs
(T otherObject) Checks if this value object has the same value as another.
-
Method Details
-
hasSameValueAs
Checks if this value object has the same value as another.- Parameters:
otherObject
- the other value object- Returns:
true
if this object has the same value asotherObject
,false
otherwise
-