/// <summary> /// Returns true if OrgApacheJackrabbitOakPluginsIndexSolrOsgiRemoteSolrServerConfProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheJackrabbitOakPluginsIndexSolrOsgiRemoteSolrServerConfProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheJackrabbitOakPluginsIndexSolrOsgiRemoteSolrServerConfProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( SolrHttpUrl == other.SolrHttpUrl || SolrHttpUrl != null && SolrHttpUrl.Equals(other.SolrHttpUrl) ) && ( SolrZkHost == other.SolrZkHost || SolrZkHost != null && SolrZkHost.Equals(other.SolrZkHost) ) && ( SolrCollection == other.SolrCollection || SolrCollection != null && SolrCollection.Equals(other.SolrCollection) ) && ( SolrSocketTimeout == other.SolrSocketTimeout || SolrSocketTimeout != null && SolrSocketTimeout.Equals(other.SolrSocketTimeout) ) && ( SolrConnectionTimeout == other.SolrConnectionTimeout || SolrConnectionTimeout != null && SolrConnectionTimeout.Equals(other.SolrConnectionTimeout) ) && ( SolrShardsNo == other.SolrShardsNo || SolrShardsNo != null && SolrShardsNo.Equals(other.SolrShardsNo) ) && ( SolrReplicationFactor == other.SolrReplicationFactor || SolrReplicationFactor != null && SolrReplicationFactor.Equals(other.SolrReplicationFactor) ) && ( SolrConfDir == other.SolrConfDir || SolrConfDir != null && SolrConfDir.Equals(other.SolrConfDir) )); }
/// <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 (SolrHttpUrl != null) { hashCode = hashCode * 59 + SolrHttpUrl.GetHashCode(); } if (SolrZkHost != null) { hashCode = hashCode * 59 + SolrZkHost.GetHashCode(); } if (SolrCollection != null) { hashCode = hashCode * 59 + SolrCollection.GetHashCode(); } if (SolrSocketTimeout != null) { hashCode = hashCode * 59 + SolrSocketTimeout.GetHashCode(); } if (SolrConnectionTimeout != null) { hashCode = hashCode * 59 + SolrConnectionTimeout.GetHashCode(); } if (SolrShardsNo != null) { hashCode = hashCode * 59 + SolrShardsNo.GetHashCode(); } if (SolrReplicationFactor != null) { hashCode = hashCode * 59 + SolrReplicationFactor.GetHashCode(); } if (SolrConfDir != null) { hashCode = hashCode * 59 + SolrConfDir.GetHashCode(); } return(hashCode); } }