return identity;
}
+ @Override
+ public int hashCode() {
+ return ownIdentity().hashCode() ^ identity().hashCode();
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ if ((object == null) || !object.getClass().equals(getClass())) {
+ return false;
+ }
+ IdentityEvent identityEvent = (IdentityEvent) object;
+ return ownIdentity().equals(identityEvent.ownIdentity()) && identity().equals(identityEvent.identity());
+ }
+
}
return ownIdentity;
}
+ @Override
+ public int hashCode() {
+ return ownIdentity().hashCode();
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ if ((object == null) || !object.getClass().equals(getClass())) {
+ return false;
+ }
+ OwnIdentityEvent ownIdentityEvent = (OwnIdentityEvent) object;
+ return ownIdentity().equals(ownIdentityEvent.ownIdentity());
+ }
+
}