| java.util.HashMap org.jpox.util.MultiMap
MultiMap | public class MultiMap extends HashMap (Code) | | An implementation of a MultiMap , which is basically a Map
with multiple values for a key. This will be removed when SUN see sense and
include it in the JDK java.util package as standard.
version: $Revision: 1.6 $ |
Constructor Summary | |
public | MultiMap() Constructor. | public | MultiMap(int initialCapacity) Constructor. | public | MultiMap(int initialCapacity, float loadFactor) Constructor. | public | MultiMap(MultiMap map) Constructor. |
MultiMap | public MultiMap()(Code) | | Constructor.
|
MultiMap | public MultiMap(int initialCapacity)(Code) | | Constructor.
Parameters: initialCapacity - the initial capacity |
MultiMap | public MultiMap(int initialCapacity, float loadFactor)(Code) | | Constructor.
Parameters: initialCapacity - initial capacity Parameters: loadFactor - load factor for the Map. |
MultiMap | public MultiMap(MultiMap map)(Code) | | Constructor.
Parameters: map - The initial Map. |
clear | public void clear()(Code) | | Clear the map.
|
clone | public Object clone()(Code) | | Method to clone the Map. Performs a shallow copy of the entry set.
the cloned map |
containsValue | public boolean containsValue(Object value)(Code) | | Check if the map contains the passed value.
Parameters: value - the value to search for true if the list contains the value |
createCollection | protected Collection createCollection(Collection c)(Code) | | Creates a new instance of the map value Collection container.
Parameters: c - the collection to copy new collection |
put | public Object put(Object key, Object value)(Code) | | Add a key, and its value, to the map.
Parameters: key - the key to set Parameters: value - the value to set the key to the value added when successful, or null if an error |
remove | public Object remove(Object key, Object item)(Code) | | Removes a specific value from map.
The item is removed from the collection mapped to the specified key.
Parameters: key - the key to remove from Parameters: item - the value to remove the value removed (which was passed in) |
values | public Collection values()(Code) | | Accessor for the values in the Map.
all of the values in the map |
|
|