at.tuwien.ifs.commons.util.collection
Class MapOfLists<E,T>

java.lang.Object
  extended by java.util.AbstractMap<E,List<T>>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
private  Map<E,List<T>> map
           
 
Constructor Summary
MapOfLists(Map<E,List<T>> map)
           
 
Method Summary
 List<T> add(E key, T singleValue)
           
 Set<Map.Entry<E,List<T>>> entrySet()
           
 List<T> put(E key, List<T> value)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

map

private Map<E,List<T>> map
Constructor Detail

MapOfLists

public MapOfLists(Map<E,List<T>> map)
Method Detail

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)