se.citerus.dddsample.domain.shared
Interface ValueObject<T>
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- CarrierMovement, Delivery, HandlingActivity, HandlingEvent.Type, HandlingHistory, Itinerary, Leg, RouteSpecification, RoutingStatus, Schedule, TrackingId, TransportStatus, UnLocode, ValueObjectSupport, VoyageNumber
public interface ValueObject<T>
- extends java.io.Serializable
A value object, as described in the DDD book.
Method Summary |
boolean |
sameValueAs(T other)
Value objects compare by the values of their attributes, they don't have an identity. |
sameValueAs
boolean sameValueAs(T other)
- Value objects compare by the values of their attributes, they don't have an identity.
- Parameters:
other
- The other value object.
- Returns:
true
if the given value object's and this value object's attributes are the same.
Copyright © 2009. All Rights Reserved.