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

            return
                ((
                     JobConsumermanagerDisableDistribution == other.JobConsumermanagerDisableDistribution ||
                     JobConsumermanagerDisableDistribution != null &&
                     JobConsumermanagerDisableDistribution.Equals(other.JobConsumermanagerDisableDistribution)
                     ) &&
                 (
                     StartupDelay == other.StartupDelay ||
                     StartupDelay != null &&
                     StartupDelay.Equals(other.StartupDelay)
                 ) &&
                 (
                     CleanupPeriod == other.CleanupPeriod ||
                     CleanupPeriod != null &&
                     CleanupPeriod.Equals(other.CleanupPeriod)
                 ));
        }
Exemplo 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 (JobConsumermanagerDisableDistribution != null)
         {
             hashCode = hashCode * 59 + JobConsumermanagerDisableDistribution.GetHashCode();
         }
         if (StartupDelay != null)
         {
             hashCode = hashCode * 59 + StartupDelay.GetHashCode();
         }
         if (CleanupPeriod != null)
         {
             hashCode = hashCode * 59 + CleanupPeriod.GetHashCode();
         }
         return(hashCode);
     }
 }