2054 |
|
|
2055 |
|
/** |
2056 |
|
* Remove entry for key only if currently mapped to given value. |
2057 |
< |
* Acts as |
2057 |
> |
* This is equivalent to |
2058 |
|
* <pre> |
2059 |
|
* if (map.containsKey(key) && map.get(key).equals(value)) { |
2060 |
|
* map.remove(key); |
2076 |
|
|
2077 |
|
/** |
2078 |
|
* Replaces entry for key only if currently mapped to given value. |
2079 |
< |
* Acts as |
2079 |
> |
* This is equivalent to |
2080 |
|
* <pre> |
2081 |
|
* if (map.containsKey(key) && map.get(key).equals(oldValue)) { |
2082 |
|
* map.put(key, newValue); |
2112 |
|
|
2113 |
|
/** |
2114 |
|
* Replaces entry for key only if currently mapped to some value. |
2115 |
< |
* Acts as |
2115 |
> |
* This is equivalent to |
2116 |
|
* <pre> |
2117 |
|
* if (map.containsKey(key)) { |
2118 |
|
* return map.put(key, value); |