Package java.util
Class Hashtable

Public Method contains

boolean contains(Object val)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Tests if some key maps into the specified value in this hashtable. This method is identical in functionality to containsValue.

Example

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

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

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