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