/// <summary> /// Returns true if ComAdobeCqWcmJobsAsyncImplAsyncJobCleanUpTaskProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqWcmJobsAsyncImplAsyncJobCleanUpTaskProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqWcmJobsAsyncImplAsyncJobCleanUpTaskProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( SchedulerExpression == other.SchedulerExpression || SchedulerExpression != null && SchedulerExpression.Equals(other.SchedulerExpression) ) && ( JobPurgeThreshold == other.JobPurgeThreshold || JobPurgeThreshold != null && JobPurgeThreshold.Equals(other.JobPurgeThreshold) ) && ( JobPurgeMaxJobs == other.JobPurgeMaxJobs || JobPurgeMaxJobs != null && JobPurgeMaxJobs.Equals(other.JobPurgeMaxJobs) )); }
/// <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 (SchedulerExpression != null) { hashCode = hashCode * 59 + SchedulerExpression.GetHashCode(); } if (JobPurgeThreshold != null) { hashCode = hashCode * 59 + JobPurgeThreshold.GetHashCode(); } if (JobPurgeMaxJobs != null) { hashCode = hashCode * 59 + JobPurgeMaxJobs.GetHashCode(); } return(hashCode); } }