in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java [1172:1341]
public boolean equals(ComputeResourceDescription 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_hostName = true && this.isSetHostName();
boolean that_present_hostName = true && that.isSetHostName();
if (this_present_hostName || that_present_hostName) {
if (!(this_present_hostName && that_present_hostName))
return false;
if (!this.hostName.equals(that.hostName))
return false;
}
boolean this_present_hostAliases = true && this.isSetHostAliases();
boolean that_present_hostAliases = true && that.isSetHostAliases();
if (this_present_hostAliases || that_present_hostAliases) {
if (!(this_present_hostAliases && that_present_hostAliases))
return false;
if (!this.hostAliases.equals(that.hostAliases))
return false;
}
boolean this_present_ipAddresses = true && this.isSetIpAddresses();
boolean that_present_ipAddresses = true && that.isSetIpAddresses();
if (this_present_ipAddresses || that_present_ipAddresses) {
if (!(this_present_ipAddresses && that_present_ipAddresses))
return false;
if (!this.ipAddresses.equals(that.ipAddresses))
return false;
}
boolean this_present_resourceDescription = true && this.isSetResourceDescription();
boolean that_present_resourceDescription = true && that.isSetResourceDescription();
if (this_present_resourceDescription || that_present_resourceDescription) {
if (!(this_present_resourceDescription && that_present_resourceDescription))
return false;
if (!this.resourceDescription.equals(that.resourceDescription))
return false;
}
boolean this_present_enabled = true && this.isSetEnabled();
boolean that_present_enabled = true && that.isSetEnabled();
if (this_present_enabled || that_present_enabled) {
if (!(this_present_enabled && that_present_enabled))
return false;
if (this.enabled != that.enabled)
return false;
}
boolean this_present_batchQueues = true && this.isSetBatchQueues();
boolean that_present_batchQueues = true && that.isSetBatchQueues();
if (this_present_batchQueues || that_present_batchQueues) {
if (!(this_present_batchQueues && that_present_batchQueues))
return false;
if (!this.batchQueues.equals(that.batchQueues))
return false;
}
boolean this_present_fileSystems = true && this.isSetFileSystems();
boolean that_present_fileSystems = true && that.isSetFileSystems();
if (this_present_fileSystems || that_present_fileSystems) {
if (!(this_present_fileSystems && that_present_fileSystems))
return false;
if (!this.fileSystems.equals(that.fileSystems))
return false;
}
boolean this_present_jobSubmissionInterfaces = true && this.isSetJobSubmissionInterfaces();
boolean that_present_jobSubmissionInterfaces = true && that.isSetJobSubmissionInterfaces();
if (this_present_jobSubmissionInterfaces || that_present_jobSubmissionInterfaces) {
if (!(this_present_jobSubmissionInterfaces && that_present_jobSubmissionInterfaces))
return false;
if (!this.jobSubmissionInterfaces.equals(that.jobSubmissionInterfaces))
return false;
}
boolean this_present_dataMovementInterfaces = true && this.isSetDataMovementInterfaces();
boolean that_present_dataMovementInterfaces = true && that.isSetDataMovementInterfaces();
if (this_present_dataMovementInterfaces || that_present_dataMovementInterfaces) {
if (!(this_present_dataMovementInterfaces && that_present_dataMovementInterfaces))
return false;
if (!this.dataMovementInterfaces.equals(that.dataMovementInterfaces))
return false;
}
boolean this_present_maxMemoryPerNode = true && this.isSetMaxMemoryPerNode();
boolean that_present_maxMemoryPerNode = true && that.isSetMaxMemoryPerNode();
if (this_present_maxMemoryPerNode || that_present_maxMemoryPerNode) {
if (!(this_present_maxMemoryPerNode && that_present_maxMemoryPerNode))
return false;
if (this.maxMemoryPerNode != that.maxMemoryPerNode)
return false;
}
boolean this_present_gatewayUsageReporting = true && this.isSetGatewayUsageReporting();
boolean that_present_gatewayUsageReporting = true && that.isSetGatewayUsageReporting();
if (this_present_gatewayUsageReporting || that_present_gatewayUsageReporting) {
if (!(this_present_gatewayUsageReporting && that_present_gatewayUsageReporting))
return false;
if (this.gatewayUsageReporting != that.gatewayUsageReporting)
return false;
}
boolean this_present_gatewayUsageModuleLoadCommand = true && this.isSetGatewayUsageModuleLoadCommand();
boolean that_present_gatewayUsageModuleLoadCommand = true && that.isSetGatewayUsageModuleLoadCommand();
if (this_present_gatewayUsageModuleLoadCommand || that_present_gatewayUsageModuleLoadCommand) {
if (!(this_present_gatewayUsageModuleLoadCommand && that_present_gatewayUsageModuleLoadCommand))
return false;
if (!this.gatewayUsageModuleLoadCommand.equals(that.gatewayUsageModuleLoadCommand))
return false;
}
boolean this_present_gatewayUsageExecutable = true && this.isSetGatewayUsageExecutable();
boolean that_present_gatewayUsageExecutable = true && that.isSetGatewayUsageExecutable();
if (this_present_gatewayUsageExecutable || that_present_gatewayUsageExecutable) {
if (!(this_present_gatewayUsageExecutable && that_present_gatewayUsageExecutable))
return false;
if (!this.gatewayUsageExecutable.equals(that.gatewayUsageExecutable))
return false;
}
boolean this_present_cpusPerNode = true && this.isSetCpusPerNode();
boolean that_present_cpusPerNode = true && that.isSetCpusPerNode();
if (this_present_cpusPerNode || that_present_cpusPerNode) {
if (!(this_present_cpusPerNode && that_present_cpusPerNode))
return false;
if (this.cpusPerNode != that.cpusPerNode)
return false;
}
boolean this_present_defaultNodeCount = true && this.isSetDefaultNodeCount();
boolean that_present_defaultNodeCount = true && that.isSetDefaultNodeCount();
if (this_present_defaultNodeCount || that_present_defaultNodeCount) {
if (!(this_present_defaultNodeCount && that_present_defaultNodeCount))
return false;
if (this.defaultNodeCount != that.defaultNodeCount)
return false;
}
boolean this_present_defaultCPUCount = true && this.isSetDefaultCPUCount();
boolean that_present_defaultCPUCount = true && that.isSetDefaultCPUCount();
if (this_present_defaultCPUCount || that_present_defaultCPUCount) {
if (!(this_present_defaultCPUCount && that_present_defaultCPUCount))
return false;
if (this.defaultCPUCount != that.defaultCPUCount)
return false;
}
boolean this_present_defaultWalltime = true && this.isSetDefaultWalltime();
boolean that_present_defaultWalltime = true && that.isSetDefaultWalltime();
if (this_present_defaultWalltime || that_present_defaultWalltime) {
if (!(this_present_defaultWalltime && that_present_defaultWalltime))
return false;
if (this.defaultWalltime != that.defaultWalltime)
return false;
}
return true;
}