Package uk.gov.gchq.gaffer.types
Class CustomMap<K,V>
- java.lang.Object
-
- uk.gov.gchq.gaffer.types.CustomMap<K,V>
-
public class CustomMap<K,V> extends Object
-
-
Constructor Summary
Constructors Constructor Description CustomMap(ToBytesSerialiser<? super K> keySerialiser, ToBytesSerialiser<? super V> valueSerialiser)
CustomMap(ToBytesSerialiser<? super K> keySerialiser, ToBytesSerialiser<? super V> valueSerialiser, HashSet<Pair<K,V>> interimPairs)
CustomMap(ToBytesSerialiser<? super K> keySerialiser, ToBytesSerialiser<? super V> valueSerialiser, Map<K,V> storageMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
V
compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
V
computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
V
computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
boolean
equals(Object obj)
void
forEach(BiConsumer<? super K,? super V> action)
V
get(Object key)
HashSet<Pair<K,V>>
getJsonStorage()
ToBytesSerialiser<? super K>
getKeySerialiser()
HashMap<K,V>
getMap()
V
getOrDefault(Object key, V defaultValue)
ToBytesSerialiser<? super V>
getValueSerialiser()
int
hashCode()
boolean
isEmpty()
Set<K>
keySet()
V
merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
putIfAbsent(K key, V value)
V
remove(Object key)
boolean
remove(Object key, Object value)
V
replace(K key, V value)
boolean
replace(K key, V oldValue, V newValue)
void
replaceAll(BiFunction<? super K,? super V,? extends V> function)
int
size()
String
toString()
Collection<V>
values()
-
-
-
Constructor Detail
-
CustomMap
public CustomMap(ToBytesSerialiser<? super K> keySerialiser, ToBytesSerialiser<? super V> valueSerialiser)
-
CustomMap
public CustomMap(ToBytesSerialiser<? super K> keySerialiser, ToBytesSerialiser<? super V> valueSerialiser, HashSet<Pair<K,V>> interimPairs)
-
CustomMap
public CustomMap(ToBytesSerialiser<? super K> keySerialiser, ToBytesSerialiser<? super V> valueSerialiser, Map<K,V> storageMap)
-
-
Method Detail
-
getKeySerialiser
public ToBytesSerialiser<? super K> getKeySerialiser()
-
getValueSerialiser
public ToBytesSerialiser<? super V> getValueSerialiser()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
-
clear
public void clear()
-
containsValue
public boolean containsValue(Object value)
-
values
public Collection<V> values()
-
computeIfPresent
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
merge
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
forEach
public void forEach(BiConsumer<? super K,? super V> action)
-
replaceAll
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
-
-