in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/data/replica/DataProductModel.java [774:889]
public boolean equals(DataProductModel that) {
if (that == null)
return false;
if (this == that)
return true;
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_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_parentProductUri = true && this.isSetParentProductUri();
boolean that_present_parentProductUri = true && that.isSetParentProductUri();
if (this_present_parentProductUri || that_present_parentProductUri) {
if (!(this_present_parentProductUri && that_present_parentProductUri))
return false;
if (!this.parentProductUri.equals(that.parentProductUri))
return false;
}
boolean this_present_productName = true && this.isSetProductName();
boolean that_present_productName = true && that.isSetProductName();
if (this_present_productName || that_present_productName) {
if (!(this_present_productName && that_present_productName))
return false;
if (!this.productName.equals(that.productName))
return false;
}
boolean this_present_productDescription = true && this.isSetProductDescription();
boolean that_present_productDescription = true && that.isSetProductDescription();
if (this_present_productDescription || that_present_productDescription) {
if (!(this_present_productDescription && that_present_productDescription))
return false;
if (!this.productDescription.equals(that.productDescription))
return false;
}
boolean this_present_ownerName = true && this.isSetOwnerName();
boolean that_present_ownerName = true && that.isSetOwnerName();
if (this_present_ownerName || that_present_ownerName) {
if (!(this_present_ownerName && that_present_ownerName))
return false;
if (!this.ownerName.equals(that.ownerName))
return false;
}
boolean this_present_dataProductType = true && this.isSetDataProductType();
boolean that_present_dataProductType = true && that.isSetDataProductType();
if (this_present_dataProductType || that_present_dataProductType) {
if (!(this_present_dataProductType && that_present_dataProductType))
return false;
if (!this.dataProductType.equals(that.dataProductType))
return false;
}
boolean this_present_productSize = true && this.isSetProductSize();
boolean that_present_productSize = true && that.isSetProductSize();
if (this_present_productSize || that_present_productSize) {
if (!(this_present_productSize && that_present_productSize))
return false;
if (this.productSize != that.productSize)
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_productMetadata = true && this.isSetProductMetadata();
boolean that_present_productMetadata = true && that.isSetProductMetadata();
if (this_present_productMetadata || that_present_productMetadata) {
if (!(this_present_productMetadata && that_present_productMetadata))
return false;
if (!this.productMetadata.equals(that.productMetadata))
return false;
}
boolean this_present_replicaLocations = true && this.isSetReplicaLocations();
boolean that_present_replicaLocations = true && that.isSetReplicaLocations();
if (this_present_replicaLocations || that_present_replicaLocations) {
if (!(this_present_replicaLocations && that_present_replicaLocations))
return false;
if (!this.replicaLocations.equals(that.replicaLocations))
return false;
}
return true;
}