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 void
clear()
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.void
put(K key, Collection<V> value)
Add a collection of values to the specified key.boolean
put(K key, V value)
Add a value to the specified key.boolean
remove(K key, V valueToDelete)
Remove value for the specified key.
-
-
-
Method Detail
-
put
public boolean put(K key, V value)
Description copied from interface:MultiMap
Add a value to the specified key.
-
put
public void put(K key, Collection<V> value)
Description copied from interface:MultiMap
Add a collection of values to the specified key.
-
remove
public boolean remove(K key, V valueToDelete)
Description copied from interface:MultiMap
Remove value for the specified key.
-
get
public Collection<V> get(K key)
Description copied from interface:MultiMap
Get all of the values associated with the specified key.
-
keySet
public Set<K> keySet()
Description copied from interface:MultiMap
Get 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:MultiMap
Clear the map of all entries.
-
-