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