in src-gen/com/facebook/buck/artifact_cache/thrift/ArtifactMetadata.java [755:870]
public boolean equals(ArtifactMetadata that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_ruleKeys = true && this.isSetRuleKeys();
boolean that_present_ruleKeys = true && that.isSetRuleKeys();
if (this_present_ruleKeys || that_present_ruleKeys) {
if (!(this_present_ruleKeys && that_present_ruleKeys))
return false;
if (!this.ruleKeys.equals(that.ruleKeys))
return false;
}
boolean this_present_metadata = true && this.isSetMetadata();
boolean that_present_metadata = true && that.isSetMetadata();
if (this_present_metadata || that_present_metadata) {
if (!(this_present_metadata && that_present_metadata))
return false;
if (!this.metadata.equals(that.metadata))
return false;
}
boolean this_present_buildTarget = true && this.isSetBuildTarget();
boolean that_present_buildTarget = true && that.isSetBuildTarget();
if (this_present_buildTarget || that_present_buildTarget) {
if (!(this_present_buildTarget && that_present_buildTarget))
return false;
if (!this.buildTarget.equals(that.buildTarget))
return false;
}
boolean this_present_repository = true && this.isSetRepository();
boolean that_present_repository = true && that.isSetRepository();
if (this_present_repository || that_present_repository) {
if (!(this_present_repository && that_present_repository))
return false;
if (!this.repository.equals(that.repository))
return false;
}
boolean this_present_artifactPayloadCrc32 = true && this.isSetArtifactPayloadCrc32();
boolean that_present_artifactPayloadCrc32 = true && that.isSetArtifactPayloadCrc32();
if (this_present_artifactPayloadCrc32 || that_present_artifactPayloadCrc32) {
if (!(this_present_artifactPayloadCrc32 && that_present_artifactPayloadCrc32))
return false;
if (!this.artifactPayloadCrc32.equals(that.artifactPayloadCrc32))
return false;
}
boolean this_present_scheduleType = true && this.isSetScheduleType();
boolean that_present_scheduleType = true && that.isSetScheduleType();
if (this_present_scheduleType || that_present_scheduleType) {
if (!(this_present_scheduleType && that_present_scheduleType))
return false;
if (!this.scheduleType.equals(that.scheduleType))
return false;
}
boolean this_present_artifactPayloadMd5 = true && this.isSetArtifactPayloadMd5();
boolean that_present_artifactPayloadMd5 = true && that.isSetArtifactPayloadMd5();
if (this_present_artifactPayloadMd5 || that_present_artifactPayloadMd5) {
if (!(this_present_artifactPayloadMd5 && that_present_artifactPayloadMd5))
return false;
if (!this.artifactPayloadMd5.equals(that.artifactPayloadMd5))
return false;
}
boolean this_present_producerId = true && this.isSetProducerId();
boolean that_present_producerId = true && that.isSetProducerId();
if (this_present_producerId || that_present_producerId) {
if (!(this_present_producerId && that_present_producerId))
return false;
if (!this.producerId.equals(that.producerId))
return false;
}
boolean this_present_buildTimeMs = true && this.isSetBuildTimeMs();
boolean that_present_buildTimeMs = true && that.isSetBuildTimeMs();
if (this_present_buildTimeMs || that_present_buildTimeMs) {
if (!(this_present_buildTimeMs && that_present_buildTimeMs))
return false;
if (this.buildTimeMs != that.buildTimeMs)
return false;
}
boolean this_present_producerHostname = true && this.isSetProducerHostname();
boolean that_present_producerHostname = true && that.isSetProducerHostname();
if (this_present_producerHostname || that_present_producerHostname) {
if (!(this_present_producerHostname && that_present_producerHostname))
return false;
if (!this.producerHostname.equals(that.producerHostname))
return false;
}
boolean this_present_sizeBytes = true && this.isSetSizeBytes();
boolean that_present_sizeBytes = true && that.isSetSizeBytes();
if (this_present_sizeBytes || that_present_sizeBytes) {
if (!(this_present_sizeBytes && that_present_sizeBytes))
return false;
if (this.sizeBytes != that.sizeBytes)
return false;
}
boolean this_present_configuration = true && this.isSetConfiguration();
boolean that_present_configuration = true && that.isSetConfiguration();
if (this_present_configuration || that_present_configuration) {
if (!(this_present_configuration && that_present_configuration))
return false;
if (!this.configuration.equals(that.configuration))
return false;
}
return true;
}