|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.thortech.xl.util.adapters.tcUtilHashTableOperations
public class tcUtilHashTableOperations
This class that has basic Hashtable operations utility methods. Author: Sobhan Sunil Dasari January 25, 2002.
| Constructor Summary | |
|---|---|
tcUtilHashTableOperations()Creates a new tcUtilHashTableOperations object. |
|
tcUtilHashTableOperations(java.util.Hashtable obj)Constructor uses existing hashtable |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public tcUtilHashTableOperations()
public tcUtilHashTableOperations(java.util.Hashtable obj)
HashTable -| Method Detail |
|---|
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 fetched
public 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 Table
public 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 Table
public java.util.Hashtable put(java.lang.Object key,
java.lang.Object value)
key - Object to be used as Keyvalue - Object to be used as Value
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||