summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/IntIntHashMap.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-10 18:26:45 +0200
committerMichael Bien <[email protected]>2010-06-10 18:26:45 +0200
commit336ab1ae582753bac4e53e884124c28550a2b0dc (patch)
tree0125c22248112b5fe4804cc8823a4f5b34fb139b /src/java/com/jogamp/common/util/IntIntHashMap.java
parentbf388223461ceb1013e893a3e274a98f258dbc5d (diff)
parent1d9b041200dcc44a353706377bfd6ac999a14d7e (diff)
Merge branch 'master' of github.com:mbien/gluegen
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.
*/