aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/IntIntHashMap.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/common/util/IntIntHashMap.java')
-rw-r--r--src/java/com/jogamp/common/util/IntIntHashMap.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/IntIntHashMap.java b/src/java/com/jogamp/common/util/IntIntHashMap.java
index aa739b4..9e2b3bc 100644
--- a/src/java/com/jogamp/common/util/IntIntHashMap.java
+++ b/src/java/com/jogamp/common/util/IntIntHashMap.java
@@ -177,6 +177,18 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable {
}
/**
+ * Copies all of the mappings from the specified map to this map.
+ */
+// @SuppressWarnings(value="cast")
+ public void putAll(/*name*/IntIntHashMap/*name*/ source) {
+ Iterator itr = source.iterator();
+ while(itr.hasNext()) {
+ Entry e = (Entry) itr.next();
+ put(e.key, e.value);
+ }
+ }
+
+ /**
* Removes the key-value mapping from this map.
* Returns the previously mapped value or {@link #getKeyNotFoundValue} if no such mapping exists.
*/