/// <summary> /// Returns true if OrgApacheSlingEventImplJobsJobConsumerManagerProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingEventImplJobsJobConsumerManagerProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingEventImplJobsJobConsumerManagerProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OrgApacheSlingInstallerConfigurationPersist == other.OrgApacheSlingInstallerConfigurationPersist || OrgApacheSlingInstallerConfigurationPersist != null && OrgApacheSlingInstallerConfigurationPersist.Equals(other.OrgApacheSlingInstallerConfigurationPersist) ) && ( JobConsumermanagerWhitelist == other.JobConsumermanagerWhitelist || JobConsumermanagerWhitelist != null && JobConsumermanagerWhitelist.Equals(other.JobConsumermanagerWhitelist) ) && ( JobConsumermanagerBlacklist == other.JobConsumermanagerBlacklist || JobConsumermanagerBlacklist != null && JobConsumermanagerBlacklist.Equals(other.JobConsumermanagerBlacklist) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (OrgApacheSlingInstallerConfigurationPersist != null) { hashCode = hashCode * 59 + OrgApacheSlingInstallerConfigurationPersist.GetHashCode(); } if (JobConsumermanagerWhitelist != null) { hashCode = hashCode * 59 + JobConsumermanagerWhitelist.GetHashCode(); } if (JobConsumermanagerBlacklist != null) { hashCode = hashCode * 59 + JobConsumermanagerBlacklist.GetHashCode(); } return(hashCode); } }