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