Ejemplo n.º 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 (ResourceResolverSearchpath != null)
         {
             hashCode = hashCode * 59 + ResourceResolverSearchpath.GetHashCode();
         }
         if (ResourceResolverManglenamespaces != null)
         {
             hashCode = hashCode * 59 + ResourceResolverManglenamespaces.GetHashCode();
         }
         if (ResourceResolverAllowDirect != null)
         {
             hashCode = hashCode * 59 + ResourceResolverAllowDirect.GetHashCode();
         }
         if (ResourceResolverRequiredProviders != null)
         {
             hashCode = hashCode * 59 + ResourceResolverRequiredProviders.GetHashCode();
         }
         if (ResourceResolverRequiredProvidernames != null)
         {
             hashCode = hashCode * 59 + ResourceResolverRequiredProvidernames.GetHashCode();
         }
         if (ResourceResolverVirtual != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVirtual.GetHashCode();
         }
         if (ResourceResolverMapping != null)
         {
             hashCode = hashCode * 59 + ResourceResolverMapping.GetHashCode();
         }
         if (ResourceResolverMapLocation != null)
         {
             hashCode = hashCode * 59 + ResourceResolverMapLocation.GetHashCode();
         }
         if (ResourceResolverMapObservation != null)
         {
             hashCode = hashCode * 59 + ResourceResolverMapObservation.GetHashCode();
         }
         if (ResourceResolverDefaultVanityRedirectStatus != null)
         {
             hashCode = hashCode * 59 + ResourceResolverDefaultVanityRedirectStatus.GetHashCode();
         }
         if (ResourceResolverEnableVanitypath != null)
         {
             hashCode = hashCode * 59 + ResourceResolverEnableVanitypath.GetHashCode();
         }
         if (ResourceResolverVanitypathMaxEntries != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVanitypathMaxEntries.GetHashCode();
         }
         if (ResourceResolverVanitypathMaxEntriesStartup != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVanitypathMaxEntriesStartup.GetHashCode();
         }
         if (ResourceResolverVanitypathBloomfilterMaxBytes != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVanitypathBloomfilterMaxBytes.GetHashCode();
         }
         if (ResourceResolverOptimizeAliasResolution != null)
         {
             hashCode = hashCode * 59 + ResourceResolverOptimizeAliasResolution.GetHashCode();
         }
         if (ResourceResolverVanitypathWhitelist != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVanitypathWhitelist.GetHashCode();
         }
         if (ResourceResolverVanitypathBlacklist != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVanitypathBlacklist.GetHashCode();
         }
         if (ResourceResolverVanityPrecedence != null)
         {
             hashCode = hashCode * 59 + ResourceResolverVanityPrecedence.GetHashCode();
         }
         if (ResourceResolverProviderhandlingParanoid != null)
         {
             hashCode = hashCode * 59 + ResourceResolverProviderhandlingParanoid.GetHashCode();
         }
         if (ResourceResolverLogClosing != null)
         {
             hashCode = hashCode * 59 + ResourceResolverLogClosing.GetHashCode();
         }
         if (ResourceResolverLogUnclosed != null)
         {
             hashCode = hashCode * 59 + ResourceResolverLogUnclosed.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ResourceResolverSearchpath == other.ResourceResolverSearchpath ||
                     ResourceResolverSearchpath != null &&
                     ResourceResolverSearchpath.Equals(other.ResourceResolverSearchpath)
                     ) &&
                 (
                     ResourceResolverManglenamespaces == other.ResourceResolverManglenamespaces ||
                     ResourceResolverManglenamespaces != null &&
                     ResourceResolverManglenamespaces.Equals(other.ResourceResolverManglenamespaces)
                 ) &&
                 (
                     ResourceResolverAllowDirect == other.ResourceResolverAllowDirect ||
                     ResourceResolverAllowDirect != null &&
                     ResourceResolverAllowDirect.Equals(other.ResourceResolverAllowDirect)
                 ) &&
                 (
                     ResourceResolverRequiredProviders == other.ResourceResolverRequiredProviders ||
                     ResourceResolverRequiredProviders != null &&
                     ResourceResolverRequiredProviders.Equals(other.ResourceResolverRequiredProviders)
                 ) &&
                 (
                     ResourceResolverRequiredProvidernames == other.ResourceResolverRequiredProvidernames ||
                     ResourceResolverRequiredProvidernames != null &&
                     ResourceResolverRequiredProvidernames.Equals(other.ResourceResolverRequiredProvidernames)
                 ) &&
                 (
                     ResourceResolverVirtual == other.ResourceResolverVirtual ||
                     ResourceResolverVirtual != null &&
                     ResourceResolverVirtual.Equals(other.ResourceResolverVirtual)
                 ) &&
                 (
                     ResourceResolverMapping == other.ResourceResolverMapping ||
                     ResourceResolverMapping != null &&
                     ResourceResolverMapping.Equals(other.ResourceResolverMapping)
                 ) &&
                 (
                     ResourceResolverMapLocation == other.ResourceResolverMapLocation ||
                     ResourceResolverMapLocation != null &&
                     ResourceResolverMapLocation.Equals(other.ResourceResolverMapLocation)
                 ) &&
                 (
                     ResourceResolverMapObservation == other.ResourceResolverMapObservation ||
                     ResourceResolverMapObservation != null &&
                     ResourceResolverMapObservation.Equals(other.ResourceResolverMapObservation)
                 ) &&
                 (
                     ResourceResolverDefaultVanityRedirectStatus == other.ResourceResolverDefaultVanityRedirectStatus ||
                     ResourceResolverDefaultVanityRedirectStatus != null &&
                     ResourceResolverDefaultVanityRedirectStatus.Equals(other.ResourceResolverDefaultVanityRedirectStatus)
                 ) &&
                 (
                     ResourceResolverEnableVanitypath == other.ResourceResolverEnableVanitypath ||
                     ResourceResolverEnableVanitypath != null &&
                     ResourceResolverEnableVanitypath.Equals(other.ResourceResolverEnableVanitypath)
                 ) &&
                 (
                     ResourceResolverVanitypathMaxEntries == other.ResourceResolverVanitypathMaxEntries ||
                     ResourceResolverVanitypathMaxEntries != null &&
                     ResourceResolverVanitypathMaxEntries.Equals(other.ResourceResolverVanitypathMaxEntries)
                 ) &&
                 (
                     ResourceResolverVanitypathMaxEntriesStartup == other.ResourceResolverVanitypathMaxEntriesStartup ||
                     ResourceResolverVanitypathMaxEntriesStartup != null &&
                     ResourceResolverVanitypathMaxEntriesStartup.Equals(other.ResourceResolverVanitypathMaxEntriesStartup)
                 ) &&
                 (
                     ResourceResolverVanitypathBloomfilterMaxBytes == other.ResourceResolverVanitypathBloomfilterMaxBytes ||
                     ResourceResolverVanitypathBloomfilterMaxBytes != null &&
                     ResourceResolverVanitypathBloomfilterMaxBytes.Equals(other.ResourceResolverVanitypathBloomfilterMaxBytes)
                 ) &&
                 (
                     ResourceResolverOptimizeAliasResolution == other.ResourceResolverOptimizeAliasResolution ||
                     ResourceResolverOptimizeAliasResolution != null &&
                     ResourceResolverOptimizeAliasResolution.Equals(other.ResourceResolverOptimizeAliasResolution)
                 ) &&
                 (
                     ResourceResolverVanitypathWhitelist == other.ResourceResolverVanitypathWhitelist ||
                     ResourceResolverVanitypathWhitelist != null &&
                     ResourceResolverVanitypathWhitelist.Equals(other.ResourceResolverVanitypathWhitelist)
                 ) &&
                 (
                     ResourceResolverVanitypathBlacklist == other.ResourceResolverVanitypathBlacklist ||
                     ResourceResolverVanitypathBlacklist != null &&
                     ResourceResolverVanitypathBlacklist.Equals(other.ResourceResolverVanitypathBlacklist)
                 ) &&
                 (
                     ResourceResolverVanityPrecedence == other.ResourceResolverVanityPrecedence ||
                     ResourceResolverVanityPrecedence != null &&
                     ResourceResolverVanityPrecedence.Equals(other.ResourceResolverVanityPrecedence)
                 ) &&
                 (
                     ResourceResolverProviderhandlingParanoid == other.ResourceResolverProviderhandlingParanoid ||
                     ResourceResolverProviderhandlingParanoid != null &&
                     ResourceResolverProviderhandlingParanoid.Equals(other.ResourceResolverProviderhandlingParanoid)
                 ) &&
                 (
                     ResourceResolverLogClosing == other.ResourceResolverLogClosing ||
                     ResourceResolverLogClosing != null &&
                     ResourceResolverLogClosing.Equals(other.ResourceResolverLogClosing)
                 ) &&
                 (
                     ResourceResolverLogUnclosed == other.ResourceResolverLogUnclosed ||
                     ResourceResolverLogUnclosed != null &&
                     ResourceResolverLogUnclosed.Equals(other.ResourceResolverLogUnclosed)
                 ));
        }