Copies the key/value combinations from the given DoubleKeyMap into this DoubleKeyMap. If this DoubleKeyMap already contained a mapping for the any of the key combinations in the given DoubleKeyMap, the previous value is overwritten. No reference is maintained to the internal structure of the given
(DoubleKeyMap<K1, K2, V> dkm)
| 205 | * if the given DoubleKeyMap is null |
| 206 | */ |
| 207 | public final void putAll(DoubleKeyMap<K1, K2, V> dkm) |
| 208 | { |
| 209 | for (Map.Entry<K1, Map<K2, V>> me : dkm.map.entrySet()) |
| 210 | { |
| 211 | Map<K2, V> localMap = map.computeIfAbsent(me.getKey(), k -> createLocalMap()); |
| 212 | localMap.putAll(me.getValue()); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * If the specified key is not already associated with a value (or is null), computes |