jmri.util
Class OrderedHashtable<K,V>

Show UML class diagram
java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<K,V>
          extended by jmri.util.OrderedHashtable<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class OrderedHashtable<K,V>
extends Hashtable<K,V>

Hashtable that preserves order for later access.

See Also:
Serialized Form

Constructor Summary
OrderedHashtable()
           
 
Method Summary
 Enumeration<K> keys()
           
 V put(K key, V value)
           
 V remove(Object key)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderedHashtable

public OrderedHashtable()
Method Detail

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Overrides:
put in class Hashtable<K,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
Overrides:
remove in class Hashtable<K,V>

keys

public Enumeration<K> keys()
Overrides:
keys in class Hashtable<K,V>


Copyright © 1997 - 2010 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads