-/*******************************************************************************\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.
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
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);
+ }
}