Package-level declarations

Types

Link copied to clipboard

A DDD ValueObject holding a single value. The unwrap method can e.g. assist in mapping the SimpleValueObject to a DTO or to a repository object.

Link copied to clipboard
interface ValueObject

Marker interface for DDD Value Objects (domain primitives) - see e.g. https://en.wikipedia.org/wiki/Value_object. A ValueObject must be final, pre-validated (before or during construction) and immutable.