in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/data/replica/DataReplicaLocationModel.java [765:880]
public boolean equals(DataReplicaLocationModel that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_replicaId = true && this.isSetReplicaId();
boolean that_present_replicaId = true && that.isSetReplicaId();
if (this_present_replicaId || that_present_replicaId) {
if (!(this_present_replicaId && that_present_replicaId))
return false;
if (!this.replicaId.equals(that.replicaId))
return false;
}
boolean this_present_productUri = true && this.isSetProductUri();
boolean that_present_productUri = true && that.isSetProductUri();
if (this_present_productUri || that_present_productUri) {
if (!(this_present_productUri && that_present_productUri))
return false;
if (!this.productUri.equals(that.productUri))
return false;
}
boolean this_present_replicaName = true && this.isSetReplicaName();
boolean that_present_replicaName = true && that.isSetReplicaName();
if (this_present_replicaName || that_present_replicaName) {
if (!(this_present_replicaName && that_present_replicaName))
return false;
if (!this.replicaName.equals(that.replicaName))
return false;
}
boolean this_present_replicaDescription = true && this.isSetReplicaDescription();
boolean that_present_replicaDescription = true && that.isSetReplicaDescription();
if (this_present_replicaDescription || that_present_replicaDescription) {
if (!(this_present_replicaDescription && that_present_replicaDescription))
return false;
if (!this.replicaDescription.equals(that.replicaDescription))
return false;
}
boolean this_present_creationTime = true && this.isSetCreationTime();
boolean that_present_creationTime = true && that.isSetCreationTime();
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_lastModifiedTime = true && this.isSetLastModifiedTime();
boolean that_present_lastModifiedTime = true && that.isSetLastModifiedTime();
if (this_present_lastModifiedTime || that_present_lastModifiedTime) {
if (!(this_present_lastModifiedTime && that_present_lastModifiedTime))
return false;
if (this.lastModifiedTime != that.lastModifiedTime)
return false;
}
boolean this_present_validUntilTime = true && this.isSetValidUntilTime();
boolean that_present_validUntilTime = true && that.isSetValidUntilTime();
if (this_present_validUntilTime || that_present_validUntilTime) {
if (!(this_present_validUntilTime && that_present_validUntilTime))
return false;
if (this.validUntilTime != that.validUntilTime)
return false;
}
boolean this_present_replicaLocationCategory = true && this.isSetReplicaLocationCategory();
boolean that_present_replicaLocationCategory = true && that.isSetReplicaLocationCategory();
if (this_present_replicaLocationCategory || that_present_replicaLocationCategory) {
if (!(this_present_replicaLocationCategory && that_present_replicaLocationCategory))
return false;
if (!this.replicaLocationCategory.equals(that.replicaLocationCategory))
return false;
}
boolean this_present_replicaPersistentType = true && this.isSetReplicaPersistentType();
boolean that_present_replicaPersistentType = true && that.isSetReplicaPersistentType();
if (this_present_replicaPersistentType || that_present_replicaPersistentType) {
if (!(this_present_replicaPersistentType && that_present_replicaPersistentType))
return false;
if (!this.replicaPersistentType.equals(that.replicaPersistentType))
return false;
}
boolean this_present_storageResourceId = true && this.isSetStorageResourceId();
boolean that_present_storageResourceId = true && that.isSetStorageResourceId();
if (this_present_storageResourceId || that_present_storageResourceId) {
if (!(this_present_storageResourceId && that_present_storageResourceId))
return false;
if (!this.storageResourceId.equals(that.storageResourceId))
return false;
}
boolean this_present_filePath = true && this.isSetFilePath();
boolean that_present_filePath = true && that.isSetFilePath();
if (this_present_filePath || that_present_filePath) {
if (!(this_present_filePath && that_present_filePath))
return false;
if (!this.filePath.equals(that.filePath))
return false;
}
boolean this_present_replicaMetadata = true && this.isSetReplicaMetadata();
boolean that_present_replicaMetadata = true && that.isSetReplicaMetadata();
if (this_present_replicaMetadata || that_present_replicaMetadata) {
if (!(this_present_replicaMetadata && that_present_replicaMetadata))
return false;
if (!this.replicaMetadata.equals(that.replicaMetadata))
return false;
}
return true;
}