se.citerus.dddsample.domain.shared
Interface Entity<T>
- All Known Implementing Classes:
- Cargo, Location, Voyage
public interface Entity<T>
An entity, as explained in the DDD book.
Method Summary |
boolean |
sameIdentityAs(T other)
Entities compare by identity, not by attributes. |
sameIdentityAs
boolean sameIdentityAs(T other)
- Entities compare by identity, not by attributes.
- Parameters:
other
- The other entity.
- Returns:
- true if the identities are the same, regardles of other attributes.
Copyright © 2009. All Rights Reserved.