/// <summary> /// Returns true if OrgApacheSlingEngineImplSlingMainServletProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingEngineImplSlingMainServletProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingEngineImplSlingMainServletProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( SlingMaxCalls == other.SlingMaxCalls || SlingMaxCalls != null && SlingMaxCalls.Equals(other.SlingMaxCalls) ) && ( SlingMaxInclusions == other.SlingMaxInclusions || SlingMaxInclusions != null && SlingMaxInclusions.Equals(other.SlingMaxInclusions) ) && ( SlingTraceAllow == other.SlingTraceAllow || SlingTraceAllow != null && SlingTraceAllow.Equals(other.SlingTraceAllow) ) && ( SlingMaxRecordRequests == other.SlingMaxRecordRequests || SlingMaxRecordRequests != null && SlingMaxRecordRequests.Equals(other.SlingMaxRecordRequests) ) && ( SlingStorePatternRequests == other.SlingStorePatternRequests || SlingStorePatternRequests != null && SlingStorePatternRequests.Equals(other.SlingStorePatternRequests) ) && ( SlingServerinfo == other.SlingServerinfo || SlingServerinfo != null && SlingServerinfo.Equals(other.SlingServerinfo) ) && ( SlingAdditionalResponseHeaders == other.SlingAdditionalResponseHeaders || SlingAdditionalResponseHeaders != null && SlingAdditionalResponseHeaders.Equals(other.SlingAdditionalResponseHeaders) )); }
/// <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 (SlingMaxCalls != null) { hashCode = hashCode * 59 + SlingMaxCalls.GetHashCode(); } if (SlingMaxInclusions != null) { hashCode = hashCode * 59 + SlingMaxInclusions.GetHashCode(); } if (SlingTraceAllow != null) { hashCode = hashCode * 59 + SlingTraceAllow.GetHashCode(); } if (SlingMaxRecordRequests != null) { hashCode = hashCode * 59 + SlingMaxRecordRequests.GetHashCode(); } if (SlingStorePatternRequests != null) { hashCode = hashCode * 59 + SlingStorePatternRequests.GetHashCode(); } if (SlingServerinfo != null) { hashCode = hashCode * 59 + SlingServerinfo.GetHashCode(); } if (SlingAdditionalResponseHeaders != null) { hashCode = hashCode * 59 + SlingAdditionalResponseHeaders.GetHashCode(); } return(hashCode); } }