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