code: public void replaceBy(Map<? extends K, ? extends V> data) {
          Map<K, V> d = copy();
          d.clear();
          d.putAll(data);
          update(d);
      }
docs: Atomically replaces the entire map by the copy of the specified map.