Esempio 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 (OrgApacheSlingCommonsLogFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileNumber != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileNumber.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileSize != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileSize.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileBuffered != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileBuffered.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Returns true if OrgApacheSlingCommonsLogLogManagerFactoryWriterProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingCommonsLogLogManagerFactoryWriterProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingCommonsLogLogManagerFactoryWriterProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     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)
                 ) &&
                 (
                     OrgApacheSlingCommonsLogFileBuffered == other.OrgApacheSlingCommonsLogFileBuffered ||
                     OrgApacheSlingCommonsLogFileBuffered != null &&
                     OrgApacheSlingCommonsLogFileBuffered.Equals(other.OrgApacheSlingCommonsLogFileBuffered)
                 ));
        }
Esempio n. 3
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);
     }
 }
Esempio n. 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)
                 ));
        }