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