com.planet_ink.coffee_mud.core.collections
Class OrderedMap<K,J>

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<K,J>
          extended by com.planet_ink.coffee_mud.core.collections.OrderedMap<K,J>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<J>, java.util.Map<K,J>

public class OrderedMap<K,J>
extends java.util.Hashtable<K,J>
implements java.lang.Iterable<J>

See Also:
Serialized Form

Constructor Summary
OrderedMap()
           
 
Method Summary
 void clear()
           
 java.util.Iterator<J> iterator()
           
 J put(K key, J value)
           
 void putAll(java.util.Map<? extends K,? extends J> t)
           
 J remove(java.lang.Object key)
           
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderedMap

public OrderedMap()
Method Detail

iterator

public java.util.Iterator<J> iterator()
Specified by:
iterator in interface java.lang.Iterable<J>

put

public J put(K key,
             J value)
Specified by:
put in interface java.util.Map<K,J>
Overrides:
put in class java.util.Hashtable<K,J>

putAll

public void putAll(java.util.Map<? extends K,? extends J> t)
Specified by:
putAll in interface java.util.Map<K,J>
Overrides:
putAll in class java.util.Hashtable<K,J>

remove

public J remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<K,J>
Overrides:
remove in class java.util.Hashtable<K,J>

clear

public void clear()
Specified by:
clear in interface java.util.Map<K,J>
Overrides:
clear in class java.util.Hashtable<K,J>