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