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