X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fscl%2FCompileProceduralExpressionValueRequest.java;h=b402520d74cbe0bb5487e2d96ed15c35c8196af6;hp=d9ce13d5969c653a3932c486ea2dc3009b21fa8b;hb=27cae6bcf184f7e27822886f5a7320f771913b71;hpb=a8891c8747dbfa75a4a3811ced1772c607ab5bdf diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/CompileProceduralExpressionValueRequest.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/CompileProceduralExpressionValueRequest.java index d9ce13d59..b402520d7 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/CompileProceduralExpressionValueRequest.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/CompileProceduralExpressionValueRequest.java @@ -59,4 +59,42 @@ public class CompileProceduralExpressionValueRequest extends AbstractCompileStru return componentType; } + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((componentType == null) ? 0 : componentType.hashCode()); + result = prime * result + ((expression == null) ? 0 : expression.hashCode()); + result = prime * result + ((indexRoot == null) ? 0 : indexRoot.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + CompileProceduralExpressionValueRequest other = (CompileProceduralExpressionValueRequest) obj; + if (componentType == null) { + if (other.componentType != null) + return false; + } else if (!componentType.equals(other.componentType)) + return false; + if (expression == null) { + if (other.expression != null) + return false; + } else if (!expression.equals(other.expression)) + return false; + if (indexRoot == null) { + if (other.indexRoot != null) + return false; + } else if (!indexRoot.equals(other.indexRoot)) + return false; + return true; + } + + }