]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/MapInterestSet.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / accessor / interestset / MapInterestSet.java
index e2f578b061d7664230c157eab4a80afd56d3dbca..29ebe781bd2587443432b44d549dba2bb0c30d9f 100644 (file)
@@ -1,23 +1,23 @@
-/*******************************************************************************\r
- *  Copyright (c) 2010 Association for Decentralized Information Management in\r
- *  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
+/*******************************************************************************
+ *  Copyright (c) 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.databoard.accessor.interestset;
 
-import java.util.Map;\r
-import java.util.TreeMap;\r
-\r
-import org.simantics.databoard.Bindings;\r
-import org.simantics.databoard.annotations.Optional;\r
-import org.simantics.databoard.binding.mutable.Variant;\r
-import org.simantics.databoard.type.MapType;\r
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.simantics.databoard.Bindings;
+import org.simantics.databoard.annotations.Optional;
+import org.simantics.databoard.binding.mutable.Variant;
+import org.simantics.databoard.type.MapType;
 
 /**
  * Interest set of a Map Type. 
@@ -44,8 +44,8 @@ public class MapInterestSet extends InterestSet {
        public @Optional InterestSet componentInterest; // Values
        /** Interest in the contents of values by key (includes assignment notification and new values) */ 
        public @Optional Map<Variant, InterestSet> componentInterests;
-\r
-       public MapInterestSet() {}\r
+
+       public MapInterestSet() {}
        
        /**
         * Create a map interest set
@@ -150,17 +150,17 @@ public class MapInterestSet extends InterestSet {
                if (componentInterests==null) return null;
                return componentInterests.get(key);             
        }
-       \r
-       /**\r
-        * Add key specific interest. Map is created if null.\r
-        * \r
-        * @param key\r
-        * @param cis\r
-        */\r
-       public void addCompositeInterest(Variant key, InterestSet cis) {\r
-               if (componentInterests == null) componentInterests = new TreeMap<Variant, InterestSet>( Bindings.VARIANT );\r
-               componentInterests.put(key, cis);\r
-       }\r
+       
+       /**
+        * Add key specific interest. Map is created if null.
+        * 
+        * @param key
+        * @param cis
+        */
+       public void addCompositeInterest(Variant key, InterestSet cis) {
+               if (componentInterests == null) componentInterests = new TreeMap<Variant, InterestSet>( Bindings.VARIANT );
+               componentInterests.put(key, cis);
+       }
        
 }