at.molindo.utils.collections
Class ListMap<T,E>

java.lang.Object
  extended by at.molindo.utils.collections.ListMap<T,E>
All Implemented Interfaces:
Map<T,List<E>>

public class ListMap<T,E>
extends Object
implements Map<T,List<E>>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ListMap()
           
 
Method Summary
 void addAll(T key, List<E> values)
           
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<T,List<E>>> entrySet()
           
 boolean equals(Object o)
           
 List<E> get(Object key)
           
 List<E> getList(T key)
           
protected  Map<T,List<E>> getMap()
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<T> keySet()
           
static
<T,E> ListMap<T,E>
newListMap()
           
protected  Map<T,List<E>> newMap()
           
 void put(T key, E value)
           
 List<E> put(T key, List<E> value)
           
 void putAll(Map<? extends T,? extends List<E>> m)
           
 List<E> remove(Object key)
           
 boolean remove(T key, E value)
           
 int size()
           
 String toString()
           
 Collection<List<E>> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListMap

public ListMap()
Method Detail

newListMap

public static <T,E> ListMap<T,E> newListMap()

newMap

protected Map<T,List<E>> newMap()

getMap

protected Map<T,List<E>> getMap()

clear

public void clear()
Specified by:
clear in interface Map<T,List<E>>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<T,List<E>>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<T,List<E>>

entrySet

public Set<Map.Entry<T,List<E>>> entrySet()
Specified by:
entrySet in interface Map<T,List<E>>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<T,List<E>>
Overrides:
equals in class Object

get

public List<E> get(Object key)
Specified by:
get in interface Map<T,List<E>>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<T,List<E>>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<T,List<E>>

keySet

public Set<T> keySet()
Specified by:
keySet in interface Map<T,List<E>>

put

public void put(T key,
                E value)

put

public List<E> put(T key,
                   List<E> value)
Specified by:
put in interface Map<T,List<E>>

putAll

public void putAll(Map<? extends T,? extends List<E>> m)
Specified by:
putAll in interface Map<T,List<E>>

addAll

public void addAll(T key,
                   List<E> values)

remove

public List<E> remove(Object key)
Specified by:
remove in interface Map<T,List<E>>

remove

public boolean remove(T key,
                      E value)

size

public int size()
Specified by:
size in interface Map<T,List<E>>

values

public Collection<List<E>> values()
Specified by:
values in interface Map<T,List<E>>

toString

public String toString()
Overrides:
toString in class Object

getList

public List<E> getList(T key)


Copyright © 2011 Molindo GmbH. All Rights Reserved.