|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--org.biomage.tools.xmlutils.MultiHashMap
Utility class for associating multiple values with a key in a Synchronized Map.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
MultiHashMap()
{@inheritDoc} |
|
MultiHashMap(int initial_capacity)
{@inheritDoc} |
|
MultiHashMap(int initial_capacity,
float load_factor)
{@inheritDoc} |
|
MultiHashMap(java.util.Map copy_from)
{@inheritDoc} |
|
MultiHashMap(MultiHashMap copy_from)
Constructs a new MultiHashMap with the same mappings as the given MultiHashMap. |
|
MultiHashMap(MultiMap copy_from)
Constructs a new MultiHashMap with the same mappings as the given MultiMap. |
|
| Method Summary | |
boolean |
containsValue(java.lang.Object value)
{@inheritDoc} |
protected java.util.Set |
createValuesSet()
Factory method for instantiating objects of type Set for use as the containers of multiple values mapped to a single key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
{@inheritDoc} Note that this method will always return null. |
java.lang.Object |
remove(java.lang.Object key,
java.lang.Object value)
Remove the given ( key, value ) pair from this MultiMap. |
boolean |
removeAll(java.lang.Object obj)
Remove all references to an Object (all values and a key, if any). |
java.util.Collection |
values()
{@inheritDoc} |
java.util.Collection |
valuesSets()
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, entrySet, get, isEmpty, keySet, putAll, remove, size |
| 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 java.util.Map |
clear, containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, remove, size |
| Constructor Detail |
public MultiHashMap()
public MultiHashMap(int initial_capacity)
public MultiHashMap(int initial_capacity,
float load_factor)
public MultiHashMap(MultiHashMap copy_from)
public MultiHashMap(MultiMap copy_from)
public MultiHashMap(java.util.Map copy_from)
| Method Detail |
public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapcontainsValue in class java.util.HashMap
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.HashMappublic boolean removeAll(java.lang.Object obj)
removeAll in interface MultiMappublic java.util.Collection values()
values in interface java.util.Mapvalues in class java.util.HashMap
public java.lang.Object remove(java.lang.Object key,
java.lang.Object value)
remove in interface MultiMappublic java.util.Collection valuesSets()
valuesSets in interface MultiMapprotected java.util.Set createValuesSet()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||