Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOvidio Mallo2010-03-10 10:59:45 +0000
committerOvidio Mallo2010-03-10 10:59:45 +0000
commit55f926c831001760714a2556fc0bc00a5cee768d (patch)
tree41f67f966df4bb9edb1e6822c618a94dc09bea1f
parent57853efcc9ad138a85fb4b03d3f8f228a26b0d0d (diff)
downloadorg.eclipse.e4.databinding-55f926c831001760714a2556fc0bc00a5cee768d.tar.gz
org.eclipse.e4.databinding-55f926c831001760714a2556fc0bc00a5cee768d.tar.xz
org.eclipse.e4.databinding-55f926c831001760714a2556fc0bc00a5cee768d.zip
RESOLVED - bug 303847: [Databinding] MapSimpleValueObservableMap#get(Object) is not scaling very wellv20100322I20100311-1200I20100310-1300bI20100310-1300
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303847
-rw-r--r--bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ComputedObservableMap.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ComputedObservableMap.java b/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ComputedObservableMap.java
index 809c0301..fcedf20c 100644
--- a/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ComputedObservableMap.java
+++ b/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ComputedObservableMap.java
@@ -9,6 +9,7 @@
* IBM Corporation - initial API and implementation
* Matthew Hall - bugs 241585, 247394, 226289, 194734, 190881, 266754,
* 268688
+ * Ovidio Mallo - bug 303847
*******************************************************************************/
package org.eclipse.core.databinding.observable.map;
@@ -213,6 +214,26 @@ public abstract class ComputedObservableMap extends AbstractObservableMap {
return valueType;
}
+ /**
+ * @since 1.3
+ */
+ public Object remove(Object key) {
+ checkRealm();
+
+ Object oldValue = get(key);
+ keySet().remove(key);
+
+ return oldValue;
+ }
+
+ /**
+ * @since 1.3
+ */
+ public boolean containsKey(Object key) {
+ getterCalled();
+ return keySet().contains(key);
+ }
+
public Set entrySet() {
return entrySet;
}

Back to the top