public boolean remove(final Object o) { if (fast) { synchronized (WeakFastHashMap.this) { final Map<K, V> temp = cloneMap(map); final boolean r = get(temp).remove(o); map = temp; return r; } } else { synchronized (map) { return get(map).remove(o); } } }
public boolean remove(final Object o) { if (fast) { synchronized (WeakFastHashMap.this) { final Map<K, V> temp = cloneMap(map); final boolean r = get(temp).remove(o); map = temp; return r; } } else { synchronized (map) { return get(map).remove(o); } } }
/** * Copy all of the mappings from the specified map to this one, replacing * any mappings with the same keys. * * @param in the map whose mappings are to be copied */ @Override public void putAll(final Map<? extends K, ? extends V> in) { if (fast) { synchronized (this) { final Map<K, V> temp = cloneMap(map); temp.putAll(in); map = temp; } } else { synchronized (map) { map.putAll(in); } } }
/** * Copy all of the mappings from the specified map to this one, replacing * any mappings with the same keys. * * @param in the map whose mappings are to be copied */ @Override public void putAll(final Map<? extends K, ? extends V> in) { if (fast) { synchronized (this) { final Map<K, V> temp = cloneMap(map); temp.putAll(in); map = temp; } } else { synchronized (map) { map.putAll(in); } } }
/** * Associate the specified value with the specified key in this map. * If the map previously contained a mapping for this key, the old * value is replaced and returned. * * @param key the key with which the value is to be associated * @param value the value to be associated with this key * @return the value previously mapped to the key, or null */ @Override public V put(final K key, final V value) { if (fast) { synchronized (this) { final Map<K, V> temp = cloneMap(map); final V result = temp.put(key, value); map = temp; return (result); } } else { synchronized (map) { return (map.put(key, value)); } } }
/** * Associate the specified value with the specified key in this map. * If the map previously contained a mapping for this key, the old * value is replaced and returned. * * @param key the key with which the value is to be associated * @param value the value to be associated with this key * @return the value previously mapped to the key, or null */ @Override public V put(final K key, final V value) { if (fast) { synchronized (this) { final Map<K, V> temp = cloneMap(map); final V result = temp.put(key, value); map = temp; return (result); } } else { synchronized (map) { return (map.put(key, value)); } } }
public boolean remove(final Object o) { if (fast) { synchronized (WeakFastHashMap.this) { final Map<K, V> temp = cloneMap(map); final boolean r = get(temp).remove(o); map = temp; return r; } } else { synchronized (map) { return get(map).remove(o); } } }
/** * Copy all of the mappings from the specified map to this one, replacing * any mappings with the same keys. * * @param in the map whose mappings are to be copied */ public void putAll(Map in) { if (fast) { synchronized (this) { Map temp = cloneMap(map); temp.putAll(in); map = temp; } } else { synchronized (map) { map.putAll(in); } } }
/** * Copy all of the mappings from the specified map to this one, replacing * any mappings with the same keys. * * @param in the map whose mappings are to be copied */ public void putAll(Map in) { if (fast) { synchronized (this) { Map temp = cloneMap(map); temp.putAll(in); map = temp; } } else { synchronized (map) { map.putAll(in); } } }
/** * Remove any mapping for this key, and return any previously * mapped value. * * @param key the key whose mapping is to be removed * @return the value removed, or null */ public Object remove(Object key) { if (fast) { synchronized (this) { Map temp = cloneMap(map); Object result = temp.remove(key); map = temp; return (result); } } else { synchronized (map) { return (map.remove(key)); } } }
/** * Copy all of the mappings from the specified map to this one, replacing * any mappings with the same keys. * * @param in the map whose mappings are to be copied */ public void putAll(Map in) { if (fast) { synchronized (this) { Map temp = cloneMap(map); temp.putAll(in); map = temp; } } else { synchronized (map) { map.putAll(in); } } }
public boolean retainAll(Collection o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).retainAll(o); map = temp; return r; } } else { synchronized (map) { return get(map).retainAll(o); } } }
public boolean remove(Object o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).remove(o); map = temp; return r; } } else { synchronized (map) { return get(map).remove(o); } } }
public boolean retainAll(Collection o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).retainAll(o); map = temp; return r; } } else { synchronized (map) { return get(map).retainAll(o); } } }
public boolean removeAll(Collection o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).removeAll(o); map = temp; return r; } } else { synchronized (map) { return get(map).removeAll(o); } } }
public boolean retainAll(Collection o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).retainAll(o); map = temp; return r; } } else { synchronized (map) { return get(map).retainAll(o); } } }
public boolean removeAll(Collection o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).removeAll(o); map = temp; return r; } } else { synchronized (map) { return get(map).removeAll(o); } } }
public boolean remove(Object o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).remove(o); map = temp; return r; } } else { synchronized (map) { return get(map).remove(o); } } }
public boolean remove(Object o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).remove(o); map = temp; return r; } } else { synchronized (map) { return get(map).remove(o); } } }
public boolean removeAll(Collection o) { if (fast) { synchronized (WeakFastHashMap.this) { Map temp = cloneMap(map); boolean r = get(temp).removeAll(o); map = temp; return r; } } else { synchronized (map) { return get(map).removeAll(o); } } }