if you remove an entry from a hashmap do all other entries move code example
Example: update hashmap value while iterating
for (Map.Entry entry : playerCooldowns.entrySet()) {
entry.setValue(entry.getValue() - 20);
}
for (Map.Entry entry : playerCooldowns.entrySet()) {
entry.setValue(entry.getValue() - 20);
}