in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/userresourceprofile/UserComputeResourcePreference.java [720:826]
public boolean equals(UserComputeResourcePreference that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_computeResourceId = true && this.isSetComputeResourceId();
boolean that_present_computeResourceId = true && that.isSetComputeResourceId();
if (this_present_computeResourceId || that_present_computeResourceId) {
if (!(this_present_computeResourceId && that_present_computeResourceId))
return false;
if (!this.computeResourceId.equals(that.computeResourceId))
return false;
}
boolean this_present_loginUserName = true && this.isSetLoginUserName();
boolean that_present_loginUserName = true && that.isSetLoginUserName();
if (this_present_loginUserName || that_present_loginUserName) {
if (!(this_present_loginUserName && that_present_loginUserName))
return false;
if (!this.loginUserName.equals(that.loginUserName))
return false;
}
boolean this_present_preferredBatchQueue = true && this.isSetPreferredBatchQueue();
boolean that_present_preferredBatchQueue = true && that.isSetPreferredBatchQueue();
if (this_present_preferredBatchQueue || that_present_preferredBatchQueue) {
if (!(this_present_preferredBatchQueue && that_present_preferredBatchQueue))
return false;
if (!this.preferredBatchQueue.equals(that.preferredBatchQueue))
return false;
}
boolean this_present_scratchLocation = true && this.isSetScratchLocation();
boolean that_present_scratchLocation = true && that.isSetScratchLocation();
if (this_present_scratchLocation || that_present_scratchLocation) {
if (!(this_present_scratchLocation && that_present_scratchLocation))
return false;
if (!this.scratchLocation.equals(that.scratchLocation))
return false;
}
boolean this_present_allocationProjectNumber = true && this.isSetAllocationProjectNumber();
boolean that_present_allocationProjectNumber = true && that.isSetAllocationProjectNumber();
if (this_present_allocationProjectNumber || that_present_allocationProjectNumber) {
if (!(this_present_allocationProjectNumber && that_present_allocationProjectNumber))
return false;
if (!this.allocationProjectNumber.equals(that.allocationProjectNumber))
return false;
}
boolean this_present_resourceSpecificCredentialStoreToken = true && this.isSetResourceSpecificCredentialStoreToken();
boolean that_present_resourceSpecificCredentialStoreToken = true && that.isSetResourceSpecificCredentialStoreToken();
if (this_present_resourceSpecificCredentialStoreToken || that_present_resourceSpecificCredentialStoreToken) {
if (!(this_present_resourceSpecificCredentialStoreToken && that_present_resourceSpecificCredentialStoreToken))
return false;
if (!this.resourceSpecificCredentialStoreToken.equals(that.resourceSpecificCredentialStoreToken))
return false;
}
boolean this_present_qualityOfService = true && this.isSetQualityOfService();
boolean that_present_qualityOfService = true && that.isSetQualityOfService();
if (this_present_qualityOfService || that_present_qualityOfService) {
if (!(this_present_qualityOfService && that_present_qualityOfService))
return false;
if (!this.qualityOfService.equals(that.qualityOfService))
return false;
}
boolean this_present_reservation = true && this.isSetReservation();
boolean that_present_reservation = true && that.isSetReservation();
if (this_present_reservation || that_present_reservation) {
if (!(this_present_reservation && that_present_reservation))
return false;
if (!this.reservation.equals(that.reservation))
return false;
}
boolean this_present_reservationStartTime = true && this.isSetReservationStartTime();
boolean that_present_reservationStartTime = true && that.isSetReservationStartTime();
if (this_present_reservationStartTime || that_present_reservationStartTime) {
if (!(this_present_reservationStartTime && that_present_reservationStartTime))
return false;
if (this.reservationStartTime != that.reservationStartTime)
return false;
}
boolean this_present_reservationEndTime = true && this.isSetReservationEndTime();
boolean that_present_reservationEndTime = true && that.isSetReservationEndTime();
if (this_present_reservationEndTime || that_present_reservationEndTime) {
if (!(this_present_reservationEndTime && that_present_reservationEndTime))
return false;
if (this.reservationEndTime != that.reservationEndTime)
return false;
}
boolean this_present_validated = true && this.isSetValidated();
boolean that_present_validated = true && that.isSetValidated();
if (this_present_validated || that_present_validated) {
if (!(this_present_validated && that_present_validated))
return false;
if (this.validated != that.validated)
return false;
}
return true;
}