Class MapOfSets<K,V>
- java.lang.Object
-
- uk.gov.gchq.gaffer.mapstore.multimap.MapOfSets<K,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the map of all entries.Collection<Map.Entry<K,Set<V>>>entrySet()Collection<V>get(K key)Get all of the values associated with the specified key.Map<K,Set<V>>getWrappedMap()Set<K>keySet()Get the Set containing all keys in the map.voidput(K key, Collection<V> value)Add a collection of values to the specified key.booleanput(K key, V value)Add a value to the specified key.booleanremove(K key, V valueToDelete)Remove value for the specified key.
-
-
-
Method Detail
-
put
public boolean put(K key, V value)
Description copied from interface:MultiMapAdd a value to the specified key.
-
put
public void put(K key, Collection<V> value)
Description copied from interface:MultiMapAdd a collection of values to the specified key.
-
remove
public boolean remove(K key, V valueToDelete)
Description copied from interface:MultiMapRemove value for the specified key.
-
get
public Collection<V> get(K key)
Description copied from interface:MultiMapGet all of the values associated with the specified key.
-
keySet
public Set<K> keySet()
Description copied from interface:MultiMapGet the Set containing all keys in the map.
-
entrySet
public Collection<Map.Entry<K,Set<V>>> entrySet()
-
clear
public void clear()
Description copied from interface:MultiMapClear the map of all entries.
-
-