Assuming I know the key, is it possible to remove it when iterating over
for (ExampleClass e : map.values()) {
    if (condition) {
        map.remove(key);
    }
}
I have found a related question (iterating over and removing from a map), but it assumes we are iterating over the key set. Does the same apply to the value set?
 
     
    