Adds or updates a mapping from the specified key.
key to add/update mapping for
the element mapped to by the specified key. The caller should set the value as desired and make sure that the key is not changed.
See Implementation
Adds or updates a mapping from the specified key.