Class tcUtilHashTableOperations

java.lang.Object
com.thortech.xl.util.adapters.tcUtilHashTableOperations

public class tcUtilHashTableOperations extends Object
This class that has basic Hashtable operations utility methods. Author: Sobhan Sunil Dasari January 25, 2002.
  • Constructor Details

    • tcUtilHashTableOperations

      public tcUtilHashTableOperations()
      Creates a new tcUtilHashTableOperations object.
    • tcUtilHashTableOperations

      public tcUtilHashTableOperations(Hashtable obj)
      Constructor uses existing hashtable
      Parameters:
      HashTable -
  • Method Details

    • initHashtable

      public Hashtable initHashtable()
      return hashtable
      Returns:
      hashtable
    • getHashtable

      public Hashtable getHashtable()
      return hashtable
      Returns:
      hashtable
    • getValue

      public String getValue(String key)
      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

      public Object getValue(Object key)
      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

      public Hashtable put(String key, String value)
      put string key value pair
      Parameters:
      key - Key to be inserted int he Hash Table
      value - Value to be inserted int he Hash Table
      Returns:
      Hash Table
    • putValueAsVector

      public Hashtable putValueAsVector(String key, String value)
      Returns a Hash Table where values are as a Vector
      Parameters:
      key - Key to be inserted int he Hash Table
      value - Value to be inserted int he Hash Table
      Returns:
      HashTable
    • put

      public Hashtable put(Object key, Object value)
      Puts the key value pair in the hash table
      Parameters:
      key - Object to be used as Key
      value - Object to be used as Value
      Returns:
      HashTable with the new value populated
    • put

      public Hashtable put(Vector vKeys, Vector vValues)
      put Vector key-value pairs in the HashTable
      Parameters:
      vKeys - Vector having Keys to be inserted in the HashTable
      vValues - Vector having corresponding values to be inserted in the HashTable
      Returns:
      HashTable