void update(Peer peer)

Replaces the Peer element if it is already present.

Source

void update(Peer peer) {
  _map[peer.key] = peer;
}