net.kwfgrid.gwes.uiproxy
Class HashMapOfLists
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
net.kwfgrid.gwes.uiproxy.HashMapOfLists
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public class HashMapOfLists
- extends HashMap
A HashMap which maps keys to lists of values.
This implementation is not thread-safe.
- See Also:
- Serialized Form
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
HashMapOfLists
public HashMapOfLists()
getList
public List getList(Object key)
- Get the list mapped by the specified key.
This method will never return
null.
If no value is mapped by the specified key, an empty list will be returned.
put
public Object put(Object key,
Object value)
- Add a value to the list of values mapped by the specified key.
- Specified by:
put in interface Map- Overrides:
put in class HashMap
- Returns:
- The specified value.
Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.