at.molindo.utils.collections
Class ListMap<T,E>
java.lang.Object
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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
ListMap
public ListMap()
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.