public class GridSynchronizedMap<K,V> extends ConcurrentHashMap8<K,V> implements Externalizable
ConcurrentHashMap8.Action<A>, ConcurrentHashMap8.BiAction<A,B>, ConcurrentHashMap8.BiFun<A,B,T>, ConcurrentHashMap8.DoubleByDoubleToDouble, ConcurrentHashMap8.DoubleToDouble, ConcurrentHashMap8.EntrySetView<K,V>, ConcurrentHashMap8.Fun<A,T>, ConcurrentHashMap8.Generator<T>, ConcurrentHashMap8.IntByIntToInt, ConcurrentHashMap8.IntToInt, ConcurrentHashMap8.KeySetView<K,V>, ConcurrentHashMap8.LongByLongToLong, ConcurrentHashMap8.LongToLong, ConcurrentHashMap8.ObjectByObjectToDouble<A,B>, ConcurrentHashMap8.ObjectByObjectToInt<A,B>, ConcurrentHashMap8.ObjectByObjectToLong<A,B>, ConcurrentHashMap8.ObjectToDouble<A>, ConcurrentHashMap8.ObjectToInt<A>, ConcurrentHashMap8.ObjectToLong<A>, ConcurrentHashMap8.Spliterator<T>, ConcurrentHashMap8.ValuesView<K,V>| Constructor and Description |
|---|
GridSynchronizedMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all of the mappings from this map.
|
V |
put(K key,
V val)
Maps the specified key to the specified value in this table.
|
void |
putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this one.
|
V |
putIfAbsent(K key,
V val) |
void |
readExternal(ObjectInput in) |
V |
remove(Object key)
Removes the key (and its corresponding value) from this map.
|
boolean |
remove(Object key,
Object val) |
V |
replace(K key,
V val) |
boolean |
replace(K key,
V oldVal,
V newVal) |
void |
writeExternal(ObjectOutput out) |
compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, entrySpliterator, equals, get, getValueOrDefault, hashCode, isEmpty, keys, keySet, keySet, keySpliterator, mappingCount, merge, newKeySet, newKeySet, size, toString, values, valueSpliteratorpublic V putIfAbsent(K key, V val)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in class ConcurrentHashMap8<K,V>null if there was no mapping for the keypublic boolean remove(Object key, Object val)
remove in interface ConcurrentMap<K,V>remove in class ConcurrentHashMap8<K,V>public boolean replace(K key, V oldVal, V newVal)
replace in interface ConcurrentMap<K,V>replace in class ConcurrentHashMap8<K,V>public V replace(K key, V val)
replace in interface ConcurrentMap<K,V>replace in class ConcurrentHashMap8<K,V>null if there was no mapping for the keypublic V put(K key, V val)
The value can be retrieved by calling the get method
with a key that is equal to the original key.
public V remove(Object key)
public void putAll(Map<? extends K,? extends V> m)
public void clear()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016