X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2Finterestset%2FMapInterestSet.java;h=29ebe781bd2587443432b44d549dba2bb0c30d9f;hb=refs%2Fchanges%2F15%2F3015%2F1;hp=e2f578b061d7664230c157eab4a80afd56d3dbca;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/MapInterestSet.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/MapInterestSet.java index e2f578b06..29ebe781b 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/MapInterestSet.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/MapInterestSet.java @@ -1,23 +1,23 @@ -/******************************************************************************* - * 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 - *******************************************************************************/ +/******************************************************************************* + * 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; -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; +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 componentInterests; - - public MapInterestSet() {} + + 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); } - - /** - * 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( Bindings.VARIANT ); - componentInterests.put(key, cis); - } + + /** + * 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( Bindings.VARIANT ); + componentInterests.put(key, cis); + } }