Interface ValueObject<T>

Type Parameters:
T - the type of value object
All Superinterfaces:
DomainObject<T>
All Known Implementing Classes:
AbstractValueObject

public interface ValueObject<T> extends DomainObject<T>
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 Type
    Method
    Description
    boolean
    hasSameValueAs(T otherObject)
    Checks if this value object has the same value as another.
  • Method Details

    • hasSameValueAs

      boolean hasSameValueAs(T otherObject)
      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 as otherObject, false otherwise