Java HashMap.containsValue()

Java HashMap.containsValue() is a method in the Java HashMap class that checks whether a specific value is present in the map. It iterates over the values in the map and returns true if it finds a matching value. Introduced in Java 1995 with Java 1.2, containsValue() is commonly used for value-based searches in Java Map collections when keys are not known or are irrelevant.

https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html