HashMap.values() - javadoc.
, . , , . , ( ), undefined. , Iterator.remove, Collection.remove, removeAll, keepAll clear. add addAll.
, ( ) . , , , , , . , .
.
public static void main(String[] args) {
Map<String, String> mapValues = new HashMap<>();
mapValues.put("Hi", "Hello");
mapValues.put("Bye", "Goodbye");
System.out.println(mapValues.size());
Collection<String> values = mapValues.values();
values.remove("Hello");
System.out.println(mapValues.size());
System.out.println(values.size());
mapValues.put("Morning", "Good morning");
System.out.println(mapValues.size());
System.out.println(values.size());
}