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> |
|
Method Summary |
void |
addAll(T key,
List<E> values)
|
static
|
build(Iterable<E> c,
Function<E,T> f)
|
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()
|
protected List<E> |
newList()
|
static
|
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)
|
void |
putAll(T key,
Collection<E> values)
|
List<E> |
remove(Object key)
|
boolean |
remove(T key,
E value)
|
int |
size()
|
String |
toString()
|
Collection<List<E>> |
values()
|
ListMap
public ListMap()
newListMap
public static <T,E> ListMap<T,E> newListMap()
build
public static <T,E> ListMap<T,E> build(Iterable<E> c,
Function<E,T> f)
newMap
protected Map<T,List<E>> newMap()
newList
protected List<E> newList()
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)
putAll
public void putAll(T key,
Collection<E> values)
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 © 2013 Molindo GmbH. All Rights Reserved.