]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/content/TerminalMap.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / content / TerminalMap.java
index d1164ae0f9ded400bac00919948aeb14ed62d0be..45ed01a21f7ee137a1f724a2895b0a2664425b91 100644 (file)
@@ -1,53 +1,53 @@
-/*******************************************************************************\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.diagram.content;\r
-\r
-import java.util.HashMap;\r
-import java.util.Map;\r
-\r
-import org.simantics.db.Resource;\r
-\r
-/**\r
- * terminal <-> connection point\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public class TerminalMap {\r
-\r
-    public static final TerminalMap EMPTY = new TerminalMap(0) {\r
-        public void put(Resource terminal, Resource connectionPoint) {\r
-            throw new UnsupportedOperationException("immutable TerminalMap");\r
-        }\r
-    };\r
-\r
-    private final Map<Resource, Resource> leftToRight;\r
-    private final Map<Resource, Resource> rightToLeft;\r
-\r
-    public TerminalMap(int initialCapacity) {\r
-        leftToRight = new HashMap<Resource, Resource>(initialCapacity);\r
-        rightToLeft = new HashMap<Resource, Resource>(initialCapacity);\r
-    }\r
-\r
-    public Resource getConnectionPoint(Resource terminal) {\r
-        return leftToRight.get(terminal);\r
-    }\r
-\r
-    public Resource getTerminal(Resource connectionPoint) {\r
-        return rightToLeft.get(connectionPoint);\r
-    }\r
-\r
-    public void put(Resource terminal, Resource connectionPoint) {\r
-        leftToRight.put(terminal, connectionPoint);\r
-        rightToLeft.put(connectionPoint, terminal);\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.diagram.content;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.simantics.db.Resource;
+
+/**
+ * terminal <-> connection point
+ * 
+ * @author Tuukka Lehtonen
+ */
+public class TerminalMap {
+
+    public static final TerminalMap EMPTY = new TerminalMap(0) {
+        public void put(Resource terminal, Resource connectionPoint) {
+            throw new UnsupportedOperationException("immutable TerminalMap");
+        }
+    };
+
+    private final Map<Resource, Resource> leftToRight;
+    private final Map<Resource, Resource> rightToLeft;
+
+    public TerminalMap(int initialCapacity) {
+        leftToRight = new HashMap<Resource, Resource>(initialCapacity);
+        rightToLeft = new HashMap<Resource, Resource>(initialCapacity);
+    }
+
+    public Resource getConnectionPoint(Resource terminal) {
+        return leftToRight.get(terminal);
+    }
+
+    public Resource getTerminal(Resource connectionPoint) {
+        return rightToLeft.get(connectionPoint);
+    }
+
+    public void put(Resource terminal, Resource connectionPoint) {
+        leftToRight.put(terminal, connectionPoint);
+        rightToLeft.put(connectionPoint, terminal);
+    }
+
+}