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