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