|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.citerus.dddsample.domain.shared.experimental.EntitySupport<T,ID>
public abstract class EntitySupport<T extends Entity,ID>
Base class for entities.
| Constructor Summary | |
|---|---|
EntitySupport()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
ID |
identity()
Entities have an identity. |
boolean |
sameIdentityAs(T other)
Entities compare by identity, not by attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntitySupport()
| Method Detail |
|---|
public final boolean sameIdentityAs(T other)
Entity
sameIdentityAs in interface Entity<T extends Entity,ID>other - The other entity.
public final ID identity()
Entity
identity in interface Entity<T extends Entity,ID>public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||