# | Line 195 | Line 195 | public interface ConcurrentMap<K,V> exte | |
---|---|---|
195 | * Replaces the entry for a key only if currently mapped to some value. | |
196 | * This is equivalent to, for this {@code map}: | |
197 | * <pre> {@code | |
198 | < | * if (map.containsKey(key)) { |
198 | > | * if (map.containsKey(key)) |
199 | * return map.put(key, value); | |
200 | < | * } else { |
201 | < | * return null; |
202 | < | * }}</pre> |
200 | > | * else |
201 | > | * return null;}</pre> |
202 | * | |
203 | * except that the action is performed atomically. | |
204 | * |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |