Package java.util
Class TreeMap
boolean containsValue(Object value)
Overrides:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns true if this map maps one keys to the specified value.
Example
TreeMap treeMap1 = new TreeMap();
treeMap1.put("1", "T");
treeMap1.put("2", "r");
treeMap1.put("3", "e");
treeMap1.put("4", "e");
treeMap1.put("5", "M");
treeMap1.put("6", "a");
treeMap1.put("7", "p");
if (treeMap.containsValue("r"))
Logger.log("This treeMap contains the value r");
The example above prints the result to the logger if the treeMap contains the value string r.