/// <summary> /// Returns true if OrgApacheSlingServletsGetDefaultGetServletProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingServletsGetDefaultGetServletProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingServletsGetDefaultGetServletProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Aliases == other.Aliases || Aliases != null && Aliases.Equals(other.Aliases) ) && ( Index == other.Index || Index != null && Index.Equals(other.Index) ) && ( IndexFiles == other.IndexFiles || IndexFiles != null && IndexFiles.Equals(other.IndexFiles) ) && ( EnableHtml == other.EnableHtml || EnableHtml != null && EnableHtml.Equals(other.EnableHtml) ) && ( EnableJson == other.EnableJson || EnableJson != null && EnableJson.Equals(other.EnableJson) ) && ( EnableTxt == other.EnableTxt || EnableTxt != null && EnableTxt.Equals(other.EnableTxt) ) && ( EnableXml == other.EnableXml || EnableXml != null && EnableXml.Equals(other.EnableXml) ) && ( JsonMaximumresults == other.JsonMaximumresults || JsonMaximumresults != null && JsonMaximumresults.Equals(other.JsonMaximumresults) ) && ( EcmaSuport == other.EcmaSuport || EcmaSuport != null && EcmaSuport.Equals(other.EcmaSuport) )); }
/// <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 (Aliases != null) { hashCode = hashCode * 59 + Aliases.GetHashCode(); } if (Index != null) { hashCode = hashCode * 59 + Index.GetHashCode(); } if (IndexFiles != null) { hashCode = hashCode * 59 + IndexFiles.GetHashCode(); } if (EnableHtml != null) { hashCode = hashCode * 59 + EnableHtml.GetHashCode(); } if (EnableJson != null) { hashCode = hashCode * 59 + EnableJson.GetHashCode(); } if (EnableTxt != null) { hashCode = hashCode * 59 + EnableTxt.GetHashCode(); } if (EnableXml != null) { hashCode = hashCode * 59 + EnableXml.GetHashCode(); } if (JsonMaximumresults != null) { hashCode = hashCode * 59 + JsonMaximumresults.GetHashCode(); } if (EcmaSuport != null) { hashCode = hashCode * 59 + EcmaSuport.GetHashCode(); } return(hashCode); } }