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