Compares this Value Object with another for equality. Value Objects are equal if they are of the same type and all equality components match.
The other Value Object to compare with
true if the Value Objects are equal, false otherwise
StaticcreateCreates a UUID instance with validation.
The UUID string
Success with UUID or Failure with DomainError
StaticgenerateStaticisProtectedgetReturns the components that determine equality for this Value Object. Two Value Objects are equal if all their equality components are equal.
An array of values used for equality comparison
Returns a string representation of an object.
Represents a UUID (Universally Unique Identifier) with validation.
UUID is immutable and validates the UUID format (version 4). Provides convenient generation and validation methods.
Example