at.tuwien.ifs.commons.util.collection
Class MapOfLists<E,T>
java.lang.Object
java.util.AbstractMap<E,List<T>>
at.tuwien.ifs.commons.util.collection.MapOfLists<E,T>
- All Implemented Interfaces:
- Map<E,List<T>>
public class MapOfLists<E,T>
- extends AbstractMap<E,List<T>>
- Version:
- $Id: MapOfLists.java 4277 2012-04-27 14:27:41Z mayer $
- Author:
- Rudolf Mayer
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
map
private Map<E,List<T>> map
MapOfLists
public MapOfLists(Map<E,List<T>> map)
entrySet
public Set<Map.Entry<E,List<T>>> entrySet()
- Specified by:
entrySet
in interface Map<E,List<T>>
- Specified by:
entrySet
in class AbstractMap<E,List<T>>
put
public List<T> put(E key,
List<T> value)
- Specified by:
put
in interface Map<E,List<T>>
- Overrides:
put
in class AbstractMap<E,List<T>>
add
public List<T> add(E key,
T singleValue)