/// <summary> /// Returns true if OrgApacheSlingTracerInternalLogTracerProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingTracerInternalLogTracerProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingTracerInternalLogTracerProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( TracerSets == other.TracerSets || TracerSets != null && TracerSets.Equals(other.TracerSets) ) && ( Enabled == other.Enabled || Enabled != null && Enabled.Equals(other.Enabled) ) && ( ServletEnabled == other.ServletEnabled || ServletEnabled != null && ServletEnabled.Equals(other.ServletEnabled) ) && ( RecordingCacheSizeInMB == other.RecordingCacheSizeInMB || RecordingCacheSizeInMB != null && RecordingCacheSizeInMB.Equals(other.RecordingCacheSizeInMB) ) && ( RecordingCacheDurationInSecs == other.RecordingCacheDurationInSecs || RecordingCacheDurationInSecs != null && RecordingCacheDurationInSecs.Equals(other.RecordingCacheDurationInSecs) ) && ( RecordingCompressionEnabled == other.RecordingCompressionEnabled || RecordingCompressionEnabled != null && RecordingCompressionEnabled.Equals(other.RecordingCompressionEnabled) ) && ( GzipResponse == other.GzipResponse || GzipResponse != null && GzipResponse.Equals(other.GzipResponse) )); }
/// <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 (TracerSets != null) { hashCode = hashCode * 59 + TracerSets.GetHashCode(); } if (Enabled != null) { hashCode = hashCode * 59 + Enabled.GetHashCode(); } if (ServletEnabled != null) { hashCode = hashCode * 59 + ServletEnabled.GetHashCode(); } if (RecordingCacheSizeInMB != null) { hashCode = hashCode * 59 + RecordingCacheSizeInMB.GetHashCode(); } if (RecordingCacheDurationInSecs != null) { hashCode = hashCode * 59 + RecordingCacheDurationInSecs.GetHashCode(); } if (RecordingCompressionEnabled != null) { hashCode = hashCode * 59 + RecordingCompressionEnabled.GetHashCode(); } if (GzipResponse != null) { hashCode = hashCode * 59 + GzipResponse.GetHashCode(); } return(hashCode); } }