/// <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 (OrgApacheSlingCommonsLogLevel != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogLevel.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogPattern != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPattern.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogNames != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogNames.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogAdditiv != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogAdditiv.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #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 (OrgApacheSlingCommonsLogLevel != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogLevel.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileNumber != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileNumber.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileSize != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileSize.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogPattern != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPattern.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogConfigurationFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogConfigurationFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogPackagingDataEnabled != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPackagingDataEnabled.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogMaxCallerDataDepth != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogMaxCallerDataDepth.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogMaxOldFileCountInDump != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogMaxOldFileCountInDump.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogNumOfLines != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogNumOfLines.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if OrgApacheSlingCommonsLogLogManagerFactoryConfigProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingCommonsLogLogManagerFactoryConfigProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingCommonsLogLogManagerFactoryConfigProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OrgApacheSlingCommonsLogLevel == other.OrgApacheSlingCommonsLogLevel ||
                     OrgApacheSlingCommonsLogLevel != null &&
                     OrgApacheSlingCommonsLogLevel.Equals(other.OrgApacheSlingCommonsLogLevel)
                     ) &&
                 (
                     OrgApacheSlingCommonsLogFile == other.OrgApacheSlingCommonsLogFile ||
                     OrgApacheSlingCommonsLogFile != null &&
                     OrgApacheSlingCommonsLogFile.Equals(other.OrgApacheSlingCommonsLogFile)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogPattern == other.OrgApacheSlingCommonsLogPattern ||
                     OrgApacheSlingCommonsLogPattern != null &&
                     OrgApacheSlingCommonsLogPattern.Equals(other.OrgApacheSlingCommonsLogPattern)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogNames == other.OrgApacheSlingCommonsLogNames ||
                     OrgApacheSlingCommonsLogNames != null &&
                     OrgApacheSlingCommonsLogNames.Equals(other.OrgApacheSlingCommonsLogNames)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogAdditiv == other.OrgApacheSlingCommonsLogAdditiv ||
                     OrgApacheSlingCommonsLogAdditiv != null &&
                     OrgApacheSlingCommonsLogAdditiv.Equals(other.OrgApacheSlingCommonsLogAdditiv)
                 ));
        }
コード例 #4
0
        /// <summary>
        /// Returns true if OrgApacheSlingCommonsLogLogManagerProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingCommonsLogLogManagerProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingCommonsLogLogManagerProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OrgApacheSlingCommonsLogLevel == other.OrgApacheSlingCommonsLogLevel ||
                     OrgApacheSlingCommonsLogLevel != null &&
                     OrgApacheSlingCommonsLogLevel.Equals(other.OrgApacheSlingCommonsLogLevel)
                     ) &&
                 (
                     OrgApacheSlingCommonsLogFile == other.OrgApacheSlingCommonsLogFile ||
                     OrgApacheSlingCommonsLogFile != null &&
                     OrgApacheSlingCommonsLogFile.Equals(other.OrgApacheSlingCommonsLogFile)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogFileNumber == other.OrgApacheSlingCommonsLogFileNumber ||
                     OrgApacheSlingCommonsLogFileNumber != null &&
                     OrgApacheSlingCommonsLogFileNumber.Equals(other.OrgApacheSlingCommonsLogFileNumber)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogFileSize == other.OrgApacheSlingCommonsLogFileSize ||
                     OrgApacheSlingCommonsLogFileSize != null &&
                     OrgApacheSlingCommonsLogFileSize.Equals(other.OrgApacheSlingCommonsLogFileSize)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogPattern == other.OrgApacheSlingCommonsLogPattern ||
                     OrgApacheSlingCommonsLogPattern != null &&
                     OrgApacheSlingCommonsLogPattern.Equals(other.OrgApacheSlingCommonsLogPattern)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogConfigurationFile == other.OrgApacheSlingCommonsLogConfigurationFile ||
                     OrgApacheSlingCommonsLogConfigurationFile != null &&
                     OrgApacheSlingCommonsLogConfigurationFile.Equals(other.OrgApacheSlingCommonsLogConfigurationFile)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogPackagingDataEnabled == other.OrgApacheSlingCommonsLogPackagingDataEnabled ||
                     OrgApacheSlingCommonsLogPackagingDataEnabled != null &&
                     OrgApacheSlingCommonsLogPackagingDataEnabled.Equals(other.OrgApacheSlingCommonsLogPackagingDataEnabled)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogMaxCallerDataDepth == other.OrgApacheSlingCommonsLogMaxCallerDataDepth ||
                     OrgApacheSlingCommonsLogMaxCallerDataDepth != null &&
                     OrgApacheSlingCommonsLogMaxCallerDataDepth.Equals(other.OrgApacheSlingCommonsLogMaxCallerDataDepth)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogMaxOldFileCountInDump == other.OrgApacheSlingCommonsLogMaxOldFileCountInDump ||
                     OrgApacheSlingCommonsLogMaxOldFileCountInDump != null &&
                     OrgApacheSlingCommonsLogMaxOldFileCountInDump.Equals(other.OrgApacheSlingCommonsLogMaxOldFileCountInDump)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogNumOfLines == other.OrgApacheSlingCommonsLogNumOfLines ||
                     OrgApacheSlingCommonsLogNumOfLines != null &&
                     OrgApacheSlingCommonsLogNumOfLines.Equals(other.OrgApacheSlingCommonsLogNumOfLines)
                 ));
        }