/// <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 (OsgiHttpWhiteboardListener != null) { hashCode = hashCode * 59 + OsgiHttpWhiteboardListener.GetHashCode(); } if (OsgiHttpWhiteboardContextSelect != null) { hashCode = hashCode * 59 + OsgiHttpWhiteboardContextSelect.GetHashCode(); } if (MaxRecursionDepth != null) { hashCode = hashCode * 59 + MaxRecursionDepth.GetHashCode(); } if (CleanupJobPeriod != null) { hashCode = hashCode * 59 + CleanupJobPeriod.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if OrgApacheSlingModelsImplModelAdapterFactoryProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingModelsImplModelAdapterFactoryProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingModelsImplModelAdapterFactoryProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OsgiHttpWhiteboardListener == other.OsgiHttpWhiteboardListener || OsgiHttpWhiteboardListener != null && OsgiHttpWhiteboardListener.Equals(other.OsgiHttpWhiteboardListener) ) && ( OsgiHttpWhiteboardContextSelect == other.OsgiHttpWhiteboardContextSelect || OsgiHttpWhiteboardContextSelect != null && OsgiHttpWhiteboardContextSelect.Equals(other.OsgiHttpWhiteboardContextSelect) ) && ( MaxRecursionDepth == other.MaxRecursionDepth || MaxRecursionDepth != null && MaxRecursionDepth.Equals(other.MaxRecursionDepth) ) && ( CleanupJobPeriod == other.CleanupJobPeriod || CleanupJobPeriod != null && CleanupJobPeriod.Equals(other.CleanupJobPeriod) )); }
public override void DumpBody(XmlWriter writer) { writer.WriteElementString("max-recursion-depth", MaxRecursionDepth.ToString()); writer.WriteElementString("timeout", Timeout.ToString()); }