Java Code Examples for java.util.WeakHashMap.putAll()

The following are Jave code examples for showing how to use putAll() of the java.util.WeakHashMap class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: monarch   File:   Source Code and License Vote up 4 votes
public synchronized void putAll(Map<? extends K, ? extends V> m) {
  WeakHashMap<K, V> tmp = new WeakHashMap<K, V>(map);
  map = Collections.unmodifiableMap(tmp);