Example #1
0
        /// <summary>
        /// Returns true if ComDayCqDamCoreImplServletMetadataGetServletProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqDamCoreImplServletMetadataGetServletProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqDamCoreImplServletMetadataGetServletProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

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

            return
                ((
                     SlingServletExtensions == other.SlingServletExtensions ||
                     SlingServletExtensions != null &&
                     SlingServletExtensions.Equals(other.SlingServletExtensions)
                     ) &&
                 (
                     SlingServletPaths == other.SlingServletPaths ||
                     SlingServletPaths != null &&
                     SlingServletPaths.Equals(other.SlingServletPaths)
                 ) &&
                 (
                     SlingServletMethods == other.SlingServletMethods ||
                     SlingServletMethods != null &&
                     SlingServletMethods.Equals(other.SlingServletMethods)
                 ));
        }