summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-01-18 10:50:56 (EST)
committerEike Stepper2008-01-18 10:50:56 (EST)
commit08be45f1841f8b4cd798e90518d4dc8d6a67b12c (patch)
tree5fe152d3852248bf491cb5388057920f2f3cd855
parent30be9f7a056db7933e40097fc503102828441434 (diff)
downloadcdo-08be45f1841f8b4cd798e90518d4dc8d6a67b12c.zip
cdo-08be45f1841f8b4cd798e90518d4dc8d6a67b12c.tar.gz
cdo-08be45f1841f8b4cd798e90518d4dc8d6a67b12c.tar.bz2
[215688] Create save points
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215688
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/delegate/ContainerMap.java57
1 files changed, 29 insertions, 28 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/delegate/ContainerMap.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/delegate/ContainerMap.java
index 735e4e4..c6f5155 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/delegate/ContainerMap.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/container/delegate/ContainerMap.java
@@ -19,6 +19,7 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
+import java.util.Map.Entry;
/**
* @author Eike Stepper
@@ -51,30 +52,6 @@ public class ContainerMap<K, V> extends AbstractDelegator<Map.Entry<K, V>> imple
}
/**
- * @category READ
- */
- public boolean containsKey(Object key)
- {
- return getDelegate().containsKey(key);
- }
-
- /**
- * @category READ
- */
- public boolean containsValue(Object value)
- {
- return getDelegate().containsValue(value);
- }
-
- /**
- * @category READ
- */
- public V get(Object key)
- {
- return getDelegate().get(key);
- }
-
- /**
* @category WRITE
*/
public V put(K key, V value)
@@ -85,7 +62,7 @@ public class ContainerMap<K, V> extends AbstractDelegator<Map.Entry<K, V>> imple
{
event.addDelta(new ContainerMapEntry<K, V>(key, removed), IContainerDelta.Kind.REMOVED);
}
-
+
event.addDelta(new ContainerMapEntry<K, V>(key, value), IContainerDelta.Kind.ADDED);
fireEvent(event);
return removed;
@@ -108,10 +85,10 @@ public class ContainerMap<K, V> extends AbstractDelegator<Map.Entry<K, V>> imple
{
event.addDelta(new ContainerMapEntry<K, V>(key, removed), IContainerDelta.Kind.REMOVED);
}
-
+
event.addDelta(new ContainerMapEntry<K, V>(key, value), IContainerDelta.Kind.ADDED);
}
-
+
dispatchEvent(event);
}
@@ -125,13 +102,37 @@ public class ContainerMap<K, V> extends AbstractDelegator<Map.Entry<K, V>> imple
{
fireRemovedEvent(new ContainerMapEntry<Object, V>(key, removed));
}
-
+
return removed;
}
/**
* @category READ
*/
+ public boolean containsKey(Object key)
+ {
+ return getDelegate().containsKey(key);
+ }
+
+ /**
+ * @category READ
+ */
+ public boolean containsValue(Object value)
+ {
+ return getDelegate().containsValue(value);
+ }
+
+ /**
+ * @category READ
+ */
+ public V get(Object key)
+ {
+ return getDelegate().get(key);
+ }
+
+ /**
+ * @category READ
+ */
public int size()
{
return getDelegate().size();