- key
- key with which the specified value is associated
- value
- value expected to be associated with the specified key
Documentation for this section has not yet been entered.
Type Reason Java.Lang.ClassCastException if the specified key cannot be compared with the keys currently in the map Java.Lang.NullPointerException if the specified key is null
Removes the entry for a key only if currently mapped to a given value. This is equivalent to
java Example
if (map.containsKey(key) && map.get(key).equals(value)) { map.remove(key); return true; else return false;}