setOrUpdate abstract method

void setOrUpdate(
  1. V value
)

Sets the value associated with the key.

If the key is present, the value is updated; otherwise, the key-value pair is inserted into the map.

Implementation

void setOrUpdate(V value);