[Schmitzm-commits] r1577 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 11 13:31:49 CEST 2011


Author: alfonx
Date: 2011-05-11 13:31:48 +0200 (Wed, 11 May 2011)
New Revision: 1577

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java
Log:


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java	2011-05-11 11:21:29 UTC (rev 1576)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java	2011-05-11 11:31:48 UTC (rev 1577)
@@ -30,6 +30,7 @@
 package de.schmitzm.lang;
 
 import java.util.HashMap;
+import java.util.Map;
 import java.util.Vector;
 
 import de.schmitzm.data.event.AbstractObjectTraceable;
@@ -150,6 +151,17 @@
 		}
 	}
 
+	/**
+	 * Von Stefan Tzeggai nachgepflegt: Bestimmt nicht optimal, aber hauptsache nicht ganz am LImited-Algorithmus
+	 * vorbei.
+	 */
+	@Override
+	public void putAll(Map<? extends K, ? extends V> m) {
+		for (K key : m.keySet()) {
+			put(key, m.get(key));
+		}
+	}
+
 	// /////////////////////////////////////////////////////////////////
 	// /////////////// Ueberschreiben von Vector ///////////////////
 	// /////////////////////////////////////////////////////////////////



More information about the Schmitzm-commits mailing list