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

            return
                ((
                     JmxObjectname == other.JmxObjectname ||
                     JmxObjectname != null &&
                     JmxObjectname.Equals(other.JmxObjectname)
                     ) &&
                 (
                     PropertyMeasureEnabled == other.PropertyMeasureEnabled ||
                     PropertyMeasureEnabled != null &&
                     PropertyMeasureEnabled.Equals(other.PropertyMeasureEnabled)
                 ) &&
                 (
                     PropertyName == other.PropertyName ||
                     PropertyName != null &&
                     PropertyName.Equals(other.PropertyName)
                 ) &&
                 (
                     PropertyMaxWaitMs == other.PropertyMaxWaitMs ||
                     PropertyMaxWaitMs != null &&
                     PropertyMaxWaitMs.Equals(other.PropertyMaxWaitMs)
                 ) &&
                 (
                     PropertyMaxRate == other.PropertyMaxRate ||
                     PropertyMaxRate != null &&
                     PropertyMaxRate.Equals(other.PropertyMaxRate)
                 ) &&
                 (
                     FulltextMeasureEnabled == other.FulltextMeasureEnabled ||
                     FulltextMeasureEnabled != null &&
                     FulltextMeasureEnabled.Equals(other.FulltextMeasureEnabled)
                 ) &&
                 (
                     FulltextName == other.FulltextName ||
                     FulltextName != null &&
                     FulltextName.Equals(other.FulltextName)
                 ) &&
                 (
                     FulltextMaxWaitMs == other.FulltextMaxWaitMs ||
                     FulltextMaxWaitMs != null &&
                     FulltextMaxWaitMs.Equals(other.FulltextMaxWaitMs)
                 ) &&
                 (
                     FulltextMaxRate == other.FulltextMaxRate ||
                     FulltextMaxRate != null &&
                     FulltextMaxRate.Equals(other.FulltextMaxRate)
                 ));
        }
Ejemplo n.º 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 (JmxObjectname != null)
         {
             hashCode = hashCode * 59 + JmxObjectname.GetHashCode();
         }
         if (Active != null)
         {
             hashCode = hashCode * 59 + Active.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (JmxObjectname != null)
         {
             hashCode = hashCode * 59 + JmxObjectname.GetHashCode();
         }
         if (PropertyMeasureEnabled != null)
         {
             hashCode = hashCode * 59 + PropertyMeasureEnabled.GetHashCode();
         }
         if (PropertyName != null)
         {
             hashCode = hashCode * 59 + PropertyName.GetHashCode();
         }
         if (PropertyMaxWaitMs != null)
         {
             hashCode = hashCode * 59 + PropertyMaxWaitMs.GetHashCode();
         }
         if (PropertyMaxRate != null)
         {
             hashCode = hashCode * 59 + PropertyMaxRate.GetHashCode();
         }
         if (FulltextMeasureEnabled != null)
         {
             hashCode = hashCode * 59 + FulltextMeasureEnabled.GetHashCode();
         }
         if (FulltextName != null)
         {
             hashCode = hashCode * 59 + FulltextName.GetHashCode();
         }
         if (FulltextMaxWaitMs != null)
         {
             hashCode = hashCode * 59 + FulltextMaxWaitMs.GetHashCode();
         }
         if (FulltextMaxRate != null)
         {
             hashCode = hashCode * 59 + FulltextMaxRate.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Returns true if ComDayCqDamCoreImplJmxAssetUpdateMonitorImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqDamCoreImplJmxAssetUpdateMonitorImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqDamCoreImplJmxAssetUpdateMonitorImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     JmxObjectname == other.JmxObjectname ||
                     JmxObjectname != null &&
                     JmxObjectname.Equals(other.JmxObjectname)
                     ) &&
                 (
                     Active == other.Active ||
                     Active != null &&
                     Active.Equals(other.Active)
                 ));
        }