/// <summary> /// Returns true if ComDayCqDamCoreImplUiPreviewFolderPreviewUpdaterImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqDamCoreImplUiPreviewFolderPreviewUpdaterImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqDamCoreImplUiPreviewFolderPreviewUpdaterImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CreatePreviewEnabled == other.CreatePreviewEnabled || CreatePreviewEnabled != null && CreatePreviewEnabled.Equals(other.CreatePreviewEnabled) ) && ( UpdatePreviewEnabled == other.UpdatePreviewEnabled || UpdatePreviewEnabled != null && UpdatePreviewEnabled.Equals(other.UpdatePreviewEnabled) ) && ( QueueSize == other.QueueSize || QueueSize != null && QueueSize.Equals(other.QueueSize) ) && ( FolderPreviewRenditionRegex == other.FolderPreviewRenditionRegex || FolderPreviewRenditionRegex != null && FolderPreviewRenditionRegex.Equals(other.FolderPreviewRenditionRegex) )); }
/// <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 (CreatePreviewEnabled != null) { hashCode = hashCode * 59 + CreatePreviewEnabled.GetHashCode(); } if (UpdatePreviewEnabled != null) { hashCode = hashCode * 59 + UpdatePreviewEnabled.GetHashCode(); } if (QueueSize != null) { hashCode = hashCode * 59 + QueueSize.GetHashCode(); } if (FolderPreviewRenditionRegex != null) { hashCode = hashCode * 59 + FolderPreviewRenditionRegex.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 (PoolSize != null) { hashCode = hashCode * 59 + PoolSize.GetHashCode(); } if (MaxPoolSize != null) { hashCode = hashCode * 59 + MaxPoolSize.GetHashCode(); } if (QueueSize != null) { hashCode = hashCode * 59 + QueueSize.GetHashCode(); } if (KeepAliveTime != null) { hashCode = hashCode * 59 + KeepAliveTime.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComAdobeCqSocialUgcbaseImplAysncReverseReplicatorImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqSocialUgcbaseImplAysncReverseReplicatorImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqSocialUgcbaseImplAysncReverseReplicatorImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( PoolSize == other.PoolSize || PoolSize != null && PoolSize.Equals(other.PoolSize) ) && ( MaxPoolSize == other.MaxPoolSize || MaxPoolSize != null && MaxPoolSize.Equals(other.MaxPoolSize) ) && ( QueueSize == other.QueueSize || QueueSize != null && QueueSize.Equals(other.QueueSize) ) && ( KeepAliveTime == other.KeepAliveTime || KeepAliveTime != null && KeepAliveTime.Equals(other.KeepAliveTime) )); }
/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (MinPoolSize != null) { hashCode = hashCode * 59 + MinPoolSize.GetHashCode(); } if (MaxPoolSize != null) { hashCode = hashCode * 59 + MaxPoolSize.GetHashCode(); } if (QueueSize != null) { hashCode = hashCode * 59 + QueueSize.GetHashCode(); } if (MaxThreadAge != null) { hashCode = hashCode * 59 + MaxThreadAge.GetHashCode(); } if (KeepAliveTime != null) { hashCode = hashCode * 59 + KeepAliveTime.GetHashCode(); } if (BlockPolicy != null) { hashCode = hashCode * 59 + BlockPolicy.GetHashCode(); } if (ShutdownGraceful != null) { hashCode = hashCode * 59 + ShutdownGraceful.GetHashCode(); } if (Daemon != null) { hashCode = hashCode * 59 + Daemon.GetHashCode(); } if (ShutdownWaitTime != null) { hashCode = hashCode * 59 + ShutdownWaitTime.GetHashCode(); } if (Priority != null) { hashCode = hashCode * 59 + Priority.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComAdobeCqSocialTranslationImplUGCLanguageDetectorProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqSocialTranslationImplUGCLanguageDetectorProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqSocialTranslationImplUGCLanguageDetectorProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( EventTopics == other.EventTopics || EventTopics != null && EventTopics.Equals(other.EventTopics) ) && ( EventFilter == other.EventFilter || EventFilter != null && EventFilter.Equals(other.EventFilter) ) && ( TranslateListenerType == other.TranslateListenerType || TranslateListenerType != null && TranslateListenerType.Equals(other.TranslateListenerType) ) && ( TranslatePropertyList == other.TranslatePropertyList || TranslatePropertyList != null && TranslatePropertyList.Equals(other.TranslatePropertyList) ) && ( PoolSize == other.PoolSize || PoolSize != null && PoolSize.Equals(other.PoolSize) ) && ( MaxPoolSize == other.MaxPoolSize || MaxPoolSize != null && MaxPoolSize.Equals(other.MaxPoolSize) ) && ( QueueSize == other.QueueSize || QueueSize != null && QueueSize.Equals(other.QueueSize) ) && ( KeepAliveTime == other.KeepAliveTime || KeepAliveTime != null && KeepAliveTime.Equals(other.KeepAliveTime) )); }
/// <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 (EventTopics != null) { hashCode = hashCode * 59 + EventTopics.GetHashCode(); } if (EventFilter != null) { hashCode = hashCode * 59 + EventFilter.GetHashCode(); } if (TranslateListenerType != null) { hashCode = hashCode * 59 + TranslateListenerType.GetHashCode(); } if (TranslatePropertyList != null) { hashCode = hashCode * 59 + TranslatePropertyList.GetHashCode(); } if (PoolSize != null) { hashCode = hashCode * 59 + PoolSize.GetHashCode(); } if (MaxPoolSize != null) { hashCode = hashCode * 59 + MaxPoolSize.GetHashCode(); } if (QueueSize != null) { hashCode = hashCode * 59 + QueueSize.GetHashCode(); } if (KeepAliveTime != null) { hashCode = hashCode * 59 + KeepAliveTime.GetHashCode(); } return(hashCode); } }
public void LinkStatistics(int numFloors, int numElevators) { m_statistics.Clear(); // Link statistics to the queues QueueSize queueSize; for (int i = 0; i < numFloors; i++) { queueSize = new QueueSize(string.Format("Queue size {0}", i + 1), m_model); queueSize.Link(m_model.QueuesController.Get(i + 1)); m_statistics.Add(queueSize); } // Link statistics to the elevators ElevatorOccupancy elevatorOccupancy; for (int i = 0; i < numElevators; i++) { elevatorOccupancy = new ElevatorOccupancy(string.Format("Elevator occupancy ({0})", i + 1), m_model); elevatorOccupancy.Link(m_model.ElevatorsController.Get(i + 1)); m_statistics.Add(elevatorOccupancy); } }
/// <summary> /// Returns true if OrgApacheSlingCommonsThreadsImplDefaultThreadPoolFactoryProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingCommonsThreadsImplDefaultThreadPoolFactoryProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingCommonsThreadsImplDefaultThreadPoolFactoryProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( MinPoolSize == other.MinPoolSize || MinPoolSize != null && MinPoolSize.Equals(other.MinPoolSize) ) && ( MaxPoolSize == other.MaxPoolSize || MaxPoolSize != null && MaxPoolSize.Equals(other.MaxPoolSize) ) && ( QueueSize == other.QueueSize || QueueSize != null && QueueSize.Equals(other.QueueSize) ) && ( MaxThreadAge == other.MaxThreadAge || MaxThreadAge != null && MaxThreadAge.Equals(other.MaxThreadAge) ) && ( KeepAliveTime == other.KeepAliveTime || KeepAliveTime != null && KeepAliveTime.Equals(other.KeepAliveTime) ) && ( BlockPolicy == other.BlockPolicy || BlockPolicy != null && BlockPolicy.Equals(other.BlockPolicy) ) && ( ShutdownGraceful == other.ShutdownGraceful || ShutdownGraceful != null && ShutdownGraceful.Equals(other.ShutdownGraceful) ) && ( Daemon == other.Daemon || Daemon != null && Daemon.Equals(other.Daemon) ) && ( ShutdownWaitTime == other.ShutdownWaitTime || ShutdownWaitTime != null && ShutdownWaitTime.Equals(other.ShutdownWaitTime) ) && ( Priority == other.Priority || Priority != null && Priority.Equals(other.Priority) )); }