at.molindo.utils.collections
Class SetMap<T,E>
java.lang.Object
at.molindo.utils.collections.SetMap<T,E>
- All Implemented Interfaces:
- Map<T,Set<E>>
public class SetMap<T,E>
- extends Object
- implements Map<T,Set<E>>
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
SetMap
public SetMap()
newSetMap
public static <T,E> SetMap<T,E> newSetMap()
newMap
protected Map<T,Set<E>> newMap()
getMap
protected Map<T,Set<E>> getMap()
clear
public void clear()
- Specified by:
clear in interface Map<T,Set<E>>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<T,Set<E>>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<T,Set<E>>
entrySet
public Set<Map.Entry<T,Set<E>>> entrySet()
- Specified by:
entrySet in interface Map<T,Set<E>>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Map<T,Set<E>>- Overrides:
equals in class Object
get
public Set<E> get(Object key)
- Specified by:
get in interface Map<T,Set<E>>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Map<T,Set<E>>- Overrides:
hashCode in class Object
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<T,Set<E>>
keySet
public Set<T> keySet()
- Specified by:
keySet in interface Map<T,Set<E>>
put
public void put(T key,
E value)
putAll
public void putAll(T key,
Collection<E> values)
put
public Set<E> put(T key,
Set<E> value)
- Specified by:
put in interface Map<T,Set<E>>
putAll
public void putAll(Map<? extends T,? extends Set<E>> m)
- Specified by:
putAll in interface Map<T,Set<E>>
addAll
public void addAll(T key,
Set<E> values)
remove
public Set<E> remove(Object key)
- Specified by:
remove in interface Map<T,Set<E>>
remove
public boolean remove(T key,
E value)
size
public int size()
- Specified by:
size in interface Map<T,Set<E>>
values
public Collection<Set<E>> values()
- Specified by:
values in interface Map<T,Set<E>>
toString
public String toString()
- Overrides:
toString in class Object
getSet
public Set<E> getSet(T key)
Copyright © 2013 Molindo GmbH. All Rights Reserved.