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