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