/// <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 (RequestLogOutput != null) { hashCode = hashCode * 59 + RequestLogOutput.GetHashCode(); } if (RequestLogOutputtype != null) { hashCode = hashCode * 59 + RequestLogOutputtype.GetHashCode(); } if (RequestLogEnabled != null) { hashCode = hashCode * 59 + RequestLogEnabled.GetHashCode(); } if (AccessLogOutput != null) { hashCode = hashCode * 59 + AccessLogOutput.GetHashCode(); } if (AccessLogOutputtype != null) { hashCode = hashCode * 59 + AccessLogOutputtype.GetHashCode(); } if (AccessLogEnabled != null) { hashCode = hashCode * 59 + AccessLogEnabled.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if OrgApacheSlingEngineImplLogRequestLoggerProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingEngineImplLogRequestLoggerProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingEngineImplLogRequestLoggerProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( RequestLogOutput == other.RequestLogOutput || RequestLogOutput != null && RequestLogOutput.Equals(other.RequestLogOutput) ) && ( RequestLogOutputtype == other.RequestLogOutputtype || RequestLogOutputtype != null && RequestLogOutputtype.Equals(other.RequestLogOutputtype) ) && ( RequestLogEnabled == other.RequestLogEnabled || RequestLogEnabled != null && RequestLogEnabled.Equals(other.RequestLogEnabled) ) && ( AccessLogOutput == other.AccessLogOutput || AccessLogOutput != null && AccessLogOutput.Equals(other.AccessLogOutput) ) && ( AccessLogOutputtype == other.AccessLogOutputtype || AccessLogOutputtype != null && AccessLogOutputtype.Equals(other.AccessLogOutputtype) ) && ( AccessLogEnabled == other.AccessLogEnabled || AccessLogEnabled != null && AccessLogEnabled.Equals(other.AccessLogEnabled) )); }