public class tcUtilHashTableOperations
extends java.lang.Object
Constructor and Description |
---|
tcUtilHashTableOperations()
Creates a new tcUtilHashTableOperations object.
|
tcUtilHashTableOperations(java.util.Hashtable obj)
Constructor uses existing hashtable
|
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable |
getHashtable()
return hashtable
|
java.lang.Object |
getValue(java.lang.Object key)
return Object for a key of type String class
|
java.lang.String |
getValue(java.lang.String key)
return String value for a key of type String class
|
java.util.Hashtable |
initHashtable()
return hashtable
|
java.util.Hashtable |
put(java.lang.Object key,
java.lang.Object value)
Puts the key value pair in the hash table
|
java.util.Hashtable |
put(java.lang.String key,
java.lang.String value)
put string key value pair
|
java.util.Hashtable |
put(java.util.Vector vKeys,
java.util.Vector vValues)
put Vector key-value pairs in the HashTable
|
java.util.Hashtable |
putValueAsVector(java.lang.String key,
java.lang.String value)
Returns a Hash Table where values are as a Vector
|
public tcUtilHashTableOperations()
public tcUtilHashTableOperations(java.util.Hashtable obj)
HashTable
- public java.util.Hashtable initHashtable()
public java.util.Hashtable getHashtable()
public java.lang.String getValue(java.lang.String key)
key
- Key for which the value is to be fetchedpublic java.lang.Object getValue(java.lang.Object key)
key
- Key for which the value is to be fetchedpublic java.util.Hashtable put(java.lang.String key, java.lang.String value)
key
- Key to be inserted int he Hash Tablevalue
- Value to be inserted int he Hash Tablepublic java.util.Hashtable putValueAsVector(java.lang.String key, java.lang.String value)
key
- Key to be inserted int he Hash Tablevalue
- Value to be inserted int he Hash Tablepublic java.util.Hashtable put(java.lang.Object key, java.lang.Object value)
key
- Object to be used as Keyvalue
- Object to be used as Valuepublic java.util.Hashtable put(java.util.Vector vKeys, java.util.Vector vValues)
vKeys
- Vector having Keys to be inserted in the HashTablevValues
- Vector having corresponding values to be inserted in the HashTable