]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/ParametrizedResourceQuery.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.graph.impl / src / org / simantics / browsing / ui / graph / impl / ParametrizedResourceQuery.java
index 07cfe29e0fe342e4c5baf77ca0fd8496c180c686..cf75858854a008b6730429b5fa212360a013d796 100644 (file)
@@ -1,54 +1,54 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.browsing.ui.graph.impl;\r
-\r
-import java.util.Arrays;\r
-\r
-import org.simantics.browsing.ui.NodeContext;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- *\r
- * @param <T>\r
- */\r
-public abstract class ParametrizedResourceQuery<T> extends ResourceQuery<T> {\r
-\r
-    Object[] parameters;\r
-\r
-    public ParametrizedResourceQuery(Object queryIdentifier, NodeContext context, Object... parameters) {\r
-        super(queryIdentifier, context);\r
-        this.parameters = parameters;\r
-        this.hash = makeHash();\r
-    }\r
-\r
-    @Override\r
-    public boolean equals(Object object) {\r
-\r
-        if (this == object)\r
-            return true;\r
-        else if (object == null)\r
-            return false;\r
-        else if (!(object instanceof ParametrizedResourceQuery<?>))\r
-            return false;\r
-\r
-        ParametrizedResourceQuery<?> query = (ParametrizedResourceQuery<?>) object;\r
-        return queryIdentifier.equals(query.queryIdentifier)\r
-        && context.equals(query.context)\r
-        && Arrays.equals(parameters, query.parameters);\r
-    }\r
-\r
-    @Override\r
-    protected int makeHash() {\r
-        return (context.hashCode() * 31 + queryIdentifier.hashCode()) * 31 + Arrays.hashCode(parameters);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.browsing.ui.graph.impl;
+
+import java.util.Arrays;
+
+import org.simantics.browsing.ui.NodeContext;
+
+/**
+ * @author Tuukka Lehtonen
+ *
+ * @param <T>
+ */
+public abstract class ParametrizedResourceQuery<T> extends ResourceQuery<T> {
+
+    Object[] parameters;
+
+    public ParametrizedResourceQuery(Object queryIdentifier, NodeContext context, Object... parameters) {
+        super(queryIdentifier, context);
+        this.parameters = parameters;
+        this.hash = makeHash();
+    }
+
+    @Override
+    public boolean equals(Object object) {
+
+        if (this == object)
+            return true;
+        else if (object == null)
+            return false;
+        else if (!(object instanceof ParametrizedResourceQuery<?>))
+            return false;
+
+        ParametrizedResourceQuery<?> query = (ParametrizedResourceQuery<?>) object;
+        return queryIdentifier.equals(query.queryIdentifier)
+        && context.equals(query.context)
+        && Arrays.equals(parameters, query.parameters);
+    }
+
+    @Override
+    protected int makeHash() {
+        return (context.hashCode() * 31 + queryIdentifier.hashCode()) * 31 + Arrays.hashCode(parameters);
+    }
+
+}