]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph/src/org/simantics/graph/store/IdRes.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / store / IdRes.java
index 4c099d1428923a8c38df38afb268f88711a07223..ad442151cdb54fdfc820d3a5f668d074310e7810 100644 (file)
@@ -1,39 +1,39 @@
-package org.simantics.graph.store;\r
-\r
-import org.simantics.graph.query.Res;\r
-\r
-/**\r
- * A resource that exists only in one graph fragment. The resource\r
- * is represented as a integer identifier.\r
- * @author Hannu Niemistö\r
- */\r
-public class IdRes implements Res {\r
-       public final GraphStore fragment;\r
-       public final int id;\r
-       \r
-       public IdRes(GraphStore fragment, int id) {     \r
-               this.fragment = fragment;\r
-               this.id = id;\r
-       }\r
-\r
-       @Override\r
-       public int hashCode() {\r
-               return id * 31 + fragment.hashCode();\r
-       }\r
-\r
-       @Override\r
-       public boolean equals(Object obj) {\r
-               if (this == obj)\r
-                       return true;\r
-               if (obj == null || getClass() != obj.getClass())\r
-                       return false;\r
-               IdRes other = (IdRes) obj;\r
-               return fragment == other.fragment && id == other.id;\r
-       }       \r
-       \r
-       @Override\r
-       public String toString() {\r
-               return "#" + id;\r
-       }\r
-               \r
-}\r
+package org.simantics.graph.store;
+
+import org.simantics.graph.query.Res;
+
+/**
+ * A resource that exists only in one graph fragment. The resource
+ * is represented as a integer identifier.
+ * @author Hannu Niemistö
+ */
+public class IdRes implements Res {
+       public final GraphStore fragment;
+       public final int id;
+       
+       public IdRes(GraphStore fragment, int id) {     
+               this.fragment = fragment;
+               this.id = id;
+       }
+
+       @Override
+       public int hashCode() {
+               return id * 31 + fragment.hashCode();
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+               if (obj == null || getClass() != obj.getClass())
+                       return false;
+               IdRes other = (IdRes) obj;
+               return fragment == other.fragment && id == other.id;
+       }       
+       
+       @Override
+       public String toString() {
+               return "#" + id;
+       }
+               
+}