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

            return
                ((
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                     ) &&
                 (
                     TypeCollections == other.TypeCollections ||
                     TypeCollections != null &&
                     TypeCollections.Equals(other.TypeCollections)
                 ) &&
                 (
                     TypeNoncollections == other.TypeNoncollections ||
                     TypeNoncollections != null &&
                     TypeNoncollections.Equals(other.TypeNoncollections)
                 ) &&
                 (
                     TypeContent == other.TypeContent ||
                     TypeContent != null &&
                     TypeContent.Equals(other.TypeContent)
                 ));
        }
        /// <summary>
        /// Returns true if OrgApacheSlingJcrWebdavImplServletsSimpleWebDavServletProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingJcrWebdavImplServletsSimpleWebDavServletProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingJcrWebdavImplServletsSimpleWebDavServletProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DavRoot == other.DavRoot ||
                     DavRoot != null &&
                     DavRoot.Equals(other.DavRoot)
                     ) &&
                 (
                     DavCreateAbsoluteUri == other.DavCreateAbsoluteUri ||
                     DavCreateAbsoluteUri != null &&
                     DavCreateAbsoluteUri.Equals(other.DavCreateAbsoluteUri)
                 ) &&
                 (
                     DavRealm == other.DavRealm ||
                     DavRealm != null &&
                     DavRealm.Equals(other.DavRealm)
                 ) &&
                 (
                     CollectionTypes == other.CollectionTypes ||
                     CollectionTypes != null &&
                     CollectionTypes.Equals(other.CollectionTypes)
                 ) &&
                 (
                     FilterPrefixes == other.FilterPrefixes ||
                     FilterPrefixes != null &&
                     FilterPrefixes.Equals(other.FilterPrefixes)
                 ) &&
                 (
                     FilterTypes == other.FilterTypes ||
                     FilterTypes != null &&
                     FilterTypes.Equals(other.FilterTypes)
                 ) &&
                 (
                     FilterUris == other.FilterUris ||
                     FilterUris != null &&
                     FilterUris.Equals(other.FilterUris)
                 ) &&
                 (
                     TypeCollections == other.TypeCollections ||
                     TypeCollections != null &&
                     TypeCollections.Equals(other.TypeCollections)
                 ) &&
                 (
                     TypeNoncollections == other.TypeNoncollections ||
                     TypeNoncollections != null &&
                     TypeNoncollections.Equals(other.TypeNoncollections)
                 ) &&
                 (
                     TypeContent == other.TypeContent ||
                     TypeContent != null &&
                     TypeContent.Equals(other.TypeContent)
                 ));
        }