APTCONVERT 1.1

fr.pixware.util
Class HashtableUtil

java.lang.Object
  extended by fr.pixware.util.HashtableUtil

public class HashtableUtil
extends java.lang.Object

A collection of utility functions (static methods) operating on Hashtable.


Constructor Summary
HashtableUtil()
           
 
Method Summary
static java.lang.String[] getAllElements(java.util.Hashtable map)
          Returns the elements contained in a Hashtable as an array of Strings.
static void putAll(java.util.Hashtable map, java.lang.String[] pairs)
          Adds pairs of key/value Strings to a Hashtable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashtableUtil

public HashtableUtil()
Method Detail

putAll

public static void putAll(java.util.Hashtable map,
                          java.lang.String[] pairs)
Adds pairs of key/value Strings to a Hashtable.

Parameters:
map - the Hashtable to be updated
pairs - an even number of String: a key followed by its value; each key/value pair is added to the hashtable (possibly replacing an existing entry with the same key).

getAllElements

public static java.lang.String[] getAllElements(java.util.Hashtable map)
Returns the elements contained in a Hashtable as an array of Strings.

Parameters:
map - the Hashtable to be queried; assumed to contain String elements
Returns:
the elements contained in the Hashtable as an array of Strings

APTCONVERT 1.1