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