package se.citerus.dddsample.domain.model; /** * A value object, as described in the DDD book. * */ public interface ValueObject { /** * Value objects compare by the values of their attributes, they don't have an identity. * * @param other The other value object. * @return true if the given value object's and this value object's attributes are the same. */ boolean sameValueAs(T other); }