/// <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 (OrgApacheSlingCommonsLogLevel != null) { hashCode = hashCode * 59 + OrgApacheSlingCommonsLogLevel.GetHashCode(); } if (OrgApacheSlingCommonsLogFile != null) { hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode(); } if (OrgApacheSlingCommonsLogPattern != null) { hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPattern.GetHashCode(); } if (OrgApacheSlingCommonsLogNames != null) { hashCode = hashCode * 59 + OrgApacheSlingCommonsLogNames.GetHashCode(); } if (OrgApacheSlingCommonsLogAdditiv != null) { hashCode = hashCode * 59 + OrgApacheSlingCommonsLogAdditiv.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if OrgApacheSlingCommonsLogLogManagerFactoryConfigProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingCommonsLogLogManagerFactoryConfigProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingCommonsLogLogManagerFactoryConfigProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OrgApacheSlingCommonsLogLevel == other.OrgApacheSlingCommonsLogLevel || OrgApacheSlingCommonsLogLevel != null && OrgApacheSlingCommonsLogLevel.Equals(other.OrgApacheSlingCommonsLogLevel) ) && ( OrgApacheSlingCommonsLogFile == other.OrgApacheSlingCommonsLogFile || OrgApacheSlingCommonsLogFile != null && OrgApacheSlingCommonsLogFile.Equals(other.OrgApacheSlingCommonsLogFile) ) && ( OrgApacheSlingCommonsLogPattern == other.OrgApacheSlingCommonsLogPattern || OrgApacheSlingCommonsLogPattern != null && OrgApacheSlingCommonsLogPattern.Equals(other.OrgApacheSlingCommonsLogPattern) ) && ( OrgApacheSlingCommonsLogNames == other.OrgApacheSlingCommonsLogNames || OrgApacheSlingCommonsLogNames != null && OrgApacheSlingCommonsLogNames.Equals(other.OrgApacheSlingCommonsLogNames) ) && ( OrgApacheSlingCommonsLogAdditiv == other.OrgApacheSlingCommonsLogAdditiv || OrgApacheSlingCommonsLogAdditiv != null && OrgApacheSlingCommonsLogAdditiv.Equals(other.OrgApacheSlingCommonsLogAdditiv) )); }