Exemple #1
0
 /// <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 (CugExemptedPrincipals != null)
         {
             hashCode = hashCode * 59 + CugExemptedPrincipals.GetHashCode();
         }
         if (CugEnabled != null)
         {
             hashCode = hashCode * 59 + CugEnabled.GetHashCode();
         }
         if (CugPrincipalsRegex != null)
         {
             hashCode = hashCode * 59 + CugPrincipalsRegex.GetHashCode();
         }
         if (CugPrincipalsReplacement != null)
         {
             hashCode = hashCode * 59 + CugPrincipalsReplacement.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #2
0
        /// <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)
                 ));
        }
Exemple #3
0
        /// <summary>
        /// Returns true if ComDayCqAuthImplCugCugSupportImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqAuthImplCugCugSupportImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqAuthImplCugCugSupportImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CugExemptedPrincipals == other.CugExemptedPrincipals ||
                     CugExemptedPrincipals != null &&
                     CugExemptedPrincipals.Equals(other.CugExemptedPrincipals)
                     ) &&
                 (
                     CugEnabled == other.CugEnabled ||
                     CugEnabled != null &&
                     CugEnabled.Equals(other.CugEnabled)
                 ) &&
                 (
                     CugPrincipalsRegex == other.CugPrincipalsRegex ||
                     CugPrincipalsRegex != null &&
                     CugPrincipalsRegex.Equals(other.CugPrincipalsRegex)
                 ) &&
                 (
                     CugPrincipalsReplacement == other.CugPrincipalsReplacement ||
                     CugPrincipalsReplacement != null &&
                     CugPrincipalsReplacement.Equals(other.CugPrincipalsReplacement)
                 ));
        }
Exemple #4
0
 /// <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);
     }
 }