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