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