コード例 #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 (QueuePriority != null)
         {
             hashCode = hashCode * 59 + QueuePriority.GetHashCode();
         }
         if (QueueRetries != null)
         {
             hashCode = hashCode * 59 + QueueRetries.GetHashCode();
         }
         if (QueueRetrydelay != null)
         {
             hashCode = hashCode * 59 + QueueRetrydelay.GetHashCode();
         }
         if (QueueMaxparallel != null)
         {
             hashCode = hashCode * 59 + QueueMaxparallel.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #2
0
        /// <summary>
        /// Returns true if OrgApacheSlingEventImplJobsDefaultJobManagerProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingEventImplJobsDefaultJobManagerProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingEventImplJobsDefaultJobManagerProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     QueuePriority == other.QueuePriority ||
                     QueuePriority != null &&
                     QueuePriority.Equals(other.QueuePriority)
                     ) &&
                 (
                     QueueRetries == other.QueueRetries ||
                     QueueRetries != null &&
                     QueueRetries.Equals(other.QueueRetries)
                 ) &&
                 (
                     QueueRetrydelay == other.QueueRetrydelay ||
                     QueueRetrydelay != null &&
                     QueueRetrydelay.Equals(other.QueueRetrydelay)
                 ) &&
                 (
                     QueueMaxparallel == other.QueueMaxparallel ||
                     QueueMaxparallel != null &&
                     QueueMaxparallel.Equals(other.QueueMaxparallel)
                 ));
        }
 /// <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 (QueueName != null)
         {
             hashCode = hashCode * 59 + QueueName.GetHashCode();
         }
         if (QueueTopics != null)
         {
             hashCode = hashCode * 59 + QueueTopics.GetHashCode();
         }
         if (QueueType != null)
         {
             hashCode = hashCode * 59 + QueueType.GetHashCode();
         }
         if (QueuePriority != null)
         {
             hashCode = hashCode * 59 + QueuePriority.GetHashCode();
         }
         if (QueueRetries != null)
         {
             hashCode = hashCode * 59 + QueueRetries.GetHashCode();
         }
         if (QueueRetrydelay != null)
         {
             hashCode = hashCode * 59 + QueueRetrydelay.GetHashCode();
         }
         if (QueueMaxparallel != null)
         {
             hashCode = hashCode * 59 + QueueMaxparallel.GetHashCode();
         }
         if (QueueKeepJobs != null)
         {
             hashCode = hashCode * 59 + QueueKeepJobs.GetHashCode();
         }
         if (QueuePreferRunOnCreationInstance != null)
         {
             hashCode = hashCode * 59 + QueuePreferRunOnCreationInstance.GetHashCode();
         }
         if (QueueThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + QueueThreadPoolSize.GetHashCode();
         }
         if (ServiceRanking != null)
         {
             hashCode = hashCode * 59 + ServiceRanking.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if OrgApacheSlingEventJobsQueueConfigurationProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingEventJobsQueueConfigurationProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingEventJobsQueueConfigurationProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     QueueName == other.QueueName ||
                     QueueName != null &&
                     QueueName.Equals(other.QueueName)
                     ) &&
                 (
                     QueueTopics == other.QueueTopics ||
                     QueueTopics != null &&
                     QueueTopics.Equals(other.QueueTopics)
                 ) &&
                 (
                     QueueType == other.QueueType ||
                     QueueType != null &&
                     QueueType.Equals(other.QueueType)
                 ) &&
                 (
                     QueuePriority == other.QueuePriority ||
                     QueuePriority != null &&
                     QueuePriority.Equals(other.QueuePriority)
                 ) &&
                 (
                     QueueRetries == other.QueueRetries ||
                     QueueRetries != null &&
                     QueueRetries.Equals(other.QueueRetries)
                 ) &&
                 (
                     QueueRetrydelay == other.QueueRetrydelay ||
                     QueueRetrydelay != null &&
                     QueueRetrydelay.Equals(other.QueueRetrydelay)
                 ) &&
                 (
                     QueueMaxparallel == other.QueueMaxparallel ||
                     QueueMaxparallel != null &&
                     QueueMaxparallel.Equals(other.QueueMaxparallel)
                 ) &&
                 (
                     QueueKeepJobs == other.QueueKeepJobs ||
                     QueueKeepJobs != null &&
                     QueueKeepJobs.Equals(other.QueueKeepJobs)
                 ) &&
                 (
                     QueuePreferRunOnCreationInstance == other.QueuePreferRunOnCreationInstance ||
                     QueuePreferRunOnCreationInstance != null &&
                     QueuePreferRunOnCreationInstance.Equals(other.QueuePreferRunOnCreationInstance)
                 ) &&
                 (
                     QueueThreadPoolSize == other.QueueThreadPoolSize ||
                     QueueThreadPoolSize != null &&
                     QueueThreadPoolSize.Equals(other.QueueThreadPoolSize)
                 ) &&
                 (
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                 ));
        }