Class ContextMultiHashMap

  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by ix.util.MultiHashMap
              extended by ix.util.context.ContextMultiHashMap
All Implemented Interfaces:
ContextMultiMap, MultiMap, java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ContextMultiHashMap
extends MultiHashMap
implements ContextMultiMap

Maps a key to a context-dependent list. Note that the mapping is not itself context-dependent -- a given key maps to the same list regardless of context -- but what the list contains is context-dependent.

See Also:
LLQueue, Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
Nested classes/interfaces inherited from interface java.util.Map
Constructor Summary
Method Summary
 void clear()
 void clearCompletely()
 java.util.Collection makeValueCollection(java.lang.Object firstItem)
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Set the entire colletion of values associated with the key.
Methods inherited from class ix.util.MultiHashMap
addValue, removeValue
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ix.util.MultiMap
addValue, removeValue
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values

Constructor Detail


public ContextMultiHashMap()
Method Detail


public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Description copied from class: MultiHashMap
Set the entire colletion of values associated with the key.

Specified by:
put in interface java.util.Map
put in class MultiHashMap


public java.util.Collection makeValueCollection(java.lang.Object firstItem)
Specified by:
makeValueCollection in interface MultiMap
makeValueCollection in class MultiHashMap


public void clearCompletely()
Specified by:
clearCompletely in interface ContextMultiMap


public void clear()
Specified by:
clear in interface java.util.Map
clear in class java.util.HashMap