Package java.util
Class Hashtable

Public Method containsValue

boolean containsValue(Object val)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns true if this hashtable maps one or more keys to this value. This method is identical in functionality to the contians method.

Example

   Hashtable hashTable = new Hashtable();
   hashTable.put("1", "h");
   hashTable.put("2", "a");
   hashTable.put("3", "s");
   hashTable.put("4", "h");

   if (hashTable.containsValue("h"))
      Logger.log("The hashtable contains a h");

The example above checks if the hashtable contains a h string.