Class MapWrapper<K,V>
- java.lang.Object
-
- uk.gov.gchq.gaffer.mapstore.utils.MapWrapper<K,V>
-
-
Constructor Summary
Constructors Constructor Description MapWrapper(Map<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object key)
Map<K,V>
getAll(Set<K> keys)
Given aSet
of keys, retrieve all of the values mapped to those keys.boolean
isEmpty()
Set<K>
keySet()
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
remove(Object key)
int
size()
Collection<V>
values()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<K,V>
-
getAll
public Map<K,V> getAll(Set<K> keys)
Given aSet
of keys, retrieve all of the values mapped to those keys.- Parameters:
keys
- the keys to search for- Returns:
- a submap containing all of the key-value pairs matching the input keys
-
-