java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.ibm.commerce.tools.util.OrderedHashtable
Implements a hashtable which preserves the order.
Field Summary | |
static java.lang.String | COPYRIGHT The IBM copyright notice field. |
Constructor Summary | |
OrderedHashtable() Constructs a new, empty hashtable with a default initial capacity (11) and load factor, which is 0.75. |
|
OrderedHashtable(int initialCapacity) Constructs a new, empty hashtable with the specified initial capacity and default load factor, which is 0.75. |
|
OrderedHashtable(int initialCapacity, float loadFactor) Constructs a new, empty hashtable with the specified initial capacity and the specified load factor. |
|
OrderedHashtable(java.util.Map t) Constructs a new hashtable with the same mappings as the given Map. |
Method Summary | |
java.util.Enumeration | keys() Returns an enumeration of the keys in this hashtable in the order in which the elements are inserted. |
java.lang.Object | put(java.lang.Object key, java.lang.Object value) Maps the specified key to the specified value in this hashtable with its order preserved. |
java.lang.Object | remove(java.lang.Object key) Removes the key (and its corresponding value) from this hashtable. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public OrderedHashtable()
public OrderedHashtable(int initialCapacity)
public OrderedHashtable(int initialCapacity, float loadFactor)
public OrderedHashtable(java.util.Map t)
Method Detail |
public java.util.Enumeration keys()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
public java.lang.Object remove(java.lang.Object key)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.