Change a room assignment only if it is still current
Conditional update with map::find
Conditional map update
Map.replace
MutableMap.replace on the JVM
Map.updatedWith and Option