Class ValueObjectAbstract

When you care only about the attributes of an element of the model, classify it as a ValueObject.

Aim to:

  • Make it express the meaning of the attributes it conveys and give it related functionality.
  • Treat the ValueObject as immutable.
  • Don’t give it any identity and avoid the design complexities necessary to maintain Entities.

Hierarchy (view full)

Constructors

Methods

  • Determines if the Values are considered equal by comparing the types of both objects and then their attributes. Returns true if both the types and their attributes are equal.

    Parameters

    Returns boolean