in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/user/UserProfile.java [1577:1818]
public boolean equals(UserProfile that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_userModelVersion = true && this.isSetUserModelVersion();
boolean that_present_userModelVersion = true && that.isSetUserModelVersion();
if (this_present_userModelVersion || that_present_userModelVersion) {
if (!(this_present_userModelVersion && that_present_userModelVersion))
return false;
if (!this.userModelVersion.equals(that.userModelVersion))
return false;
}
boolean this_present_airavataInternalUserId = true && this.isSetAiravataInternalUserId();
boolean that_present_airavataInternalUserId = true && that.isSetAiravataInternalUserId();
if (this_present_airavataInternalUserId || that_present_airavataInternalUserId) {
if (!(this_present_airavataInternalUserId && that_present_airavataInternalUserId))
return false;
if (!this.airavataInternalUserId.equals(that.airavataInternalUserId))
return false;
}
boolean this_present_userId = true && this.isSetUserId();
boolean that_present_userId = true && that.isSetUserId();
if (this_present_userId || that_present_userId) {
if (!(this_present_userId && that_present_userId))
return false;
if (!this.userId.equals(that.userId))
return false;
}
boolean this_present_gatewayId = true && this.isSetGatewayId();
boolean that_present_gatewayId = true && that.isSetGatewayId();
if (this_present_gatewayId || that_present_gatewayId) {
if (!(this_present_gatewayId && that_present_gatewayId))
return false;
if (!this.gatewayId.equals(that.gatewayId))
return false;
}
boolean this_present_emails = true && this.isSetEmails();
boolean that_present_emails = true && that.isSetEmails();
if (this_present_emails || that_present_emails) {
if (!(this_present_emails && that_present_emails))
return false;
if (!this.emails.equals(that.emails))
return false;
}
boolean this_present_firstName = true && this.isSetFirstName();
boolean that_present_firstName = true && that.isSetFirstName();
if (this_present_firstName || that_present_firstName) {
if (!(this_present_firstName && that_present_firstName))
return false;
if (!this.firstName.equals(that.firstName))
return false;
}
boolean this_present_lastName = true && this.isSetLastName();
boolean that_present_lastName = true && that.isSetLastName();
if (this_present_lastName || that_present_lastName) {
if (!(this_present_lastName && that_present_lastName))
return false;
if (!this.lastName.equals(that.lastName))
return false;
}
boolean this_present_middleName = true && this.isSetMiddleName();
boolean that_present_middleName = true && that.isSetMiddleName();
if (this_present_middleName || that_present_middleName) {
if (!(this_present_middleName && that_present_middleName))
return false;
if (!this.middleName.equals(that.middleName))
return false;
}
boolean this_present_namePrefix = true && this.isSetNamePrefix();
boolean that_present_namePrefix = true && that.isSetNamePrefix();
if (this_present_namePrefix || that_present_namePrefix) {
if (!(this_present_namePrefix && that_present_namePrefix))
return false;
if (!this.namePrefix.equals(that.namePrefix))
return false;
}
boolean this_present_nameSuffix = true && this.isSetNameSuffix();
boolean that_present_nameSuffix = true && that.isSetNameSuffix();
if (this_present_nameSuffix || that_present_nameSuffix) {
if (!(this_present_nameSuffix && that_present_nameSuffix))
return false;
if (!this.nameSuffix.equals(that.nameSuffix))
return false;
}
boolean this_present_orcidId = true && this.isSetOrcidId();
boolean that_present_orcidId = true && that.isSetOrcidId();
if (this_present_orcidId || that_present_orcidId) {
if (!(this_present_orcidId && that_present_orcidId))
return false;
if (!this.orcidId.equals(that.orcidId))
return false;
}
boolean this_present_phones = true && this.isSetPhones();
boolean that_present_phones = true && that.isSetPhones();
if (this_present_phones || that_present_phones) {
if (!(this_present_phones && that_present_phones))
return false;
if (!this.phones.equals(that.phones))
return false;
}
boolean this_present_country = true && this.isSetCountry();
boolean that_present_country = true && that.isSetCountry();
if (this_present_country || that_present_country) {
if (!(this_present_country && that_present_country))
return false;
if (!this.country.equals(that.country))
return false;
}
boolean this_present_nationality = true && this.isSetNationality();
boolean that_present_nationality = true && that.isSetNationality();
if (this_present_nationality || that_present_nationality) {
if (!(this_present_nationality && that_present_nationality))
return false;
if (!this.nationality.equals(that.nationality))
return false;
}
boolean this_present_homeOrganization = true && this.isSetHomeOrganization();
boolean that_present_homeOrganization = true && that.isSetHomeOrganization();
if (this_present_homeOrganization || that_present_homeOrganization) {
if (!(this_present_homeOrganization && that_present_homeOrganization))
return false;
if (!this.homeOrganization.equals(that.homeOrganization))
return false;
}
boolean this_present_orginationAffiliation = true && this.isSetOrginationAffiliation();
boolean that_present_orginationAffiliation = true && that.isSetOrginationAffiliation();
if (this_present_orginationAffiliation || that_present_orginationAffiliation) {
if (!(this_present_orginationAffiliation && that_present_orginationAffiliation))
return false;
if (!this.orginationAffiliation.equals(that.orginationAffiliation))
return false;
}
boolean this_present_creationTime = true;
boolean that_present_creationTime = true;
if (this_present_creationTime || that_present_creationTime) {
if (!(this_present_creationTime && that_present_creationTime))
return false;
if (this.creationTime != that.creationTime)
return false;
}
boolean this_present_lastAccessTime = true;
boolean that_present_lastAccessTime = true;
if (this_present_lastAccessTime || that_present_lastAccessTime) {
if (!(this_present_lastAccessTime && that_present_lastAccessTime))
return false;
if (this.lastAccessTime != that.lastAccessTime)
return false;
}
boolean this_present_validUntil = true;
boolean that_present_validUntil = true;
if (this_present_validUntil || that_present_validUntil) {
if (!(this_present_validUntil && that_present_validUntil))
return false;
if (this.validUntil != that.validUntil)
return false;
}
boolean this_present_State = true && this.isSetState();
boolean that_present_State = true && that.isSetState();
if (this_present_State || that_present_State) {
if (!(this_present_State && that_present_State))
return false;
if (!this.State.equals(that.State))
return false;
}
boolean this_present_comments = true && this.isSetComments();
boolean that_present_comments = true && that.isSetComments();
if (this_present_comments || that_present_comments) {
if (!(this_present_comments && that_present_comments))
return false;
if (!this.comments.equals(that.comments))
return false;
}
boolean this_present_labeledURI = true && this.isSetLabeledURI();
boolean that_present_labeledURI = true && that.isSetLabeledURI();
if (this_present_labeledURI || that_present_labeledURI) {
if (!(this_present_labeledURI && that_present_labeledURI))
return false;
if (!this.labeledURI.equals(that.labeledURI))
return false;
}
boolean this_present_gpgKey = true && this.isSetGpgKey();
boolean that_present_gpgKey = true && that.isSetGpgKey();
if (this_present_gpgKey || that_present_gpgKey) {
if (!(this_present_gpgKey && that_present_gpgKey))
return false;
if (!this.gpgKey.equals(that.gpgKey))
return false;
}
boolean this_present_timeZone = true && this.isSetTimeZone();
boolean that_present_timeZone = true && that.isSetTimeZone();
if (this_present_timeZone || that_present_timeZone) {
if (!(this_present_timeZone && that_present_timeZone))
return false;
if (!this.timeZone.equals(that.timeZone))
return false;
}
boolean this_present_nsfDemographics = true && this.isSetNsfDemographics();
boolean that_present_nsfDemographics = true && that.isSetNsfDemographics();
if (this_present_nsfDemographics || that_present_nsfDemographics) {
if (!(this_present_nsfDemographics && that_present_nsfDemographics))
return false;
if (!this.nsfDemographics.equals(that.nsfDemographics))
return false;
}
boolean this_present_customDashboard = true && this.isSetCustomDashboard();
boolean that_present_customDashboard = true && that.isSetCustomDashboard();
if (this_present_customDashboard || that_present_customDashboard) {
if (!(this_present_customDashboard && that_present_customDashboard))
return false;
if (!this.customDashboard.equals(that.customDashboard))
return false;
}
return true;
}