public class ClusterNodeLocalMapImpl<K,V> extends ConcurrentHashMap8<K,V> implements ClusterNodeLocalMap<K,V>, 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 |
|---|
ClusterNodeLocalMapImpl()
No-arg constructor is required by externalization.
|
| Modifier and Type | Method and Description |
|---|---|
V |
addIfAbsent(K key,
Callable<V> dflt)
Gets the value with given key.
|
V |
addIfAbsent(K key,
V val)
Unlike its sibling method
ConcurrentMap.putIfAbsent(Object, Object) this method returns
current mapping from the map. |
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on unmarshalling.
|
String |
toString()
Returns a string representation of this map.
|
void |
writeExternal(ObjectOutput out) |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, entrySpliterator, equals, get, getValueOrDefault, hashCode, isEmpty, keys, keySet, keySet, keySpliterator, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values, valueSpliteratorclone, finalize, getClass, notify, notifyAll, wait, wait, waitputIfAbsent, remove, replace, replacepublic ClusterNodeLocalMapImpl()
@Nullable public V addIfAbsent(K key, @Nullable Callable<V> dflt)
null
return null.addIfAbsent in interface ClusterNodeLocalMap<K,V>key - Key to get the value for.dflt - Default value producing closure.null if key is not found and
closure is null.public V addIfAbsent(K key, V val)
ConcurrentMap.putIfAbsent(Object, Object) this method returns
current mapping from the map.addIfAbsent in interface ClusterNodeLocalMap<K,V>key - Key.val - Value to put if one does not exist.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionprotected Object readResolve() throws ObjectStreamException
ObjectStreamException - Thrown in case of unmarshalling error.public String toString()
{}"). Adjacent
mappings are separated by the characters ", " (comma
and space). Each key-value mapping is rendered as the key
followed by an equals sign ("=") followed by the
associated value.toString in class ConcurrentHashMap8<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015