com.bankframe.util.collections
Class OrderedHashtable

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by com.bankframe.util.collections.OrderedHashtable
All Implemented Interfaces:
Serializable, Cloneable, Map

public class OrderedHashtable
extends Hashtable

See Also:
Serialized Form

Constructor Summary
OrderedHashtable()
           
OrderedHashtable(int initialSize)
           
 
Method Summary
 void clear()
           
 Enumeration elements()
          This method guarantees that the values will be returned in the exact order in which they were added.
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderedHashtable

public OrderedHashtable()

OrderedHashtable

public OrderedHashtable(int initialSize)
Method Detail

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class Hashtable

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class Hashtable

elements

public Enumeration elements()
This method guarantees that the values will be returned in the exact order in which they were added.

Overrides:
elements in class Hashtable

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class Hashtable


Copyright © 2005, 2007, Oracle. All rights reserved.