Package com.thortech.xl.util.adapters
Class tcUtilHashTableOperations
java.lang.Object
com.thortech.xl.util.adapters.tcUtilHashTableOperations
This class that has basic Hashtable operations utility methods. Author:
Sobhan Sunil Dasari January 25, 2002.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new tcUtilHashTableOperations object.Constructor uses existing hashtable -
Method Summary
Modifier and TypeMethodDescriptionreturn hashtablereturn Object for a key of type String classreturn String value for a key of type String classreturn hashtablePuts the key value pair in the hash tableput string key value pairput Vector key-value pairs in the HashTableputValueAsVector
(String key, String value) Returns a Hash Table where values are as a Vector
-
Constructor Details
-
tcUtilHashTableOperations
public tcUtilHashTableOperations()Creates a new tcUtilHashTableOperations object. -
tcUtilHashTableOperations
Constructor uses existing hashtable- Parameters:
HashTable
-
-
-
Method Details
-
initHashtable
return hashtable- Returns:
- hashtable
-
getHashtable
return hashtable- Returns:
- hashtable
-
getValue
return String value for a key of type String class- Parameters:
key
- Key for which the value is to be fetched- Returns:
- String value from the HashTable for the specified Key
-
getValue
return Object for a key of type String class- Parameters:
key
- Key for which the value is to be fetched- Returns:
- Object From the HashTable for the specified Key
-
put
put string key value pair- Parameters:
key
- Key to be inserted int he Hash Tablevalue
- Value to be inserted int he Hash Table- Returns:
- Hash Table
-
putValueAsVector
Returns a Hash Table where values are as a Vector- Parameters:
key
- Key to be inserted int he Hash Tablevalue
- Value to be inserted int he Hash Table- Returns:
- HashTable
-
put
Puts the key value pair in the hash table- Parameters:
key
- Object to be used as Keyvalue
- Object to be used as Value- Returns:
- HashTable with the new value populated
-
put
put Vector key-value pairs in the HashTable- Parameters:
vKeys
- Vector having Keys to be inserted in the HashTablevValues
- Vector having corresponding values to be inserted in the HashTable- Returns:
- HashTable
-