K - key typeV - value typepublic interface ElasticMap<K,V> extends Map<K,V>, com.hazelcast.nio.Disposable
Map which additionally supports set and delete operations,
which are like put and remove but don't return the previous value. When methods are
called over an RPC mechanism that must serialize/deserialize return values, using these variants whenever
the return value isn't needed can improve performance.| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(K key)
Like
Map.remove(Object), but doesn't return the previously mapped value. |
V |
putIfAbsent(K key,
V value) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
boolean |
set(K key,
V value)
Like
Map.put(Object, Object), but doesn't return the previously mapped value. |
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, remove, replaceAll, size, valuesboolean set(K key, V value)
Map.put(Object, Object), but doesn't return the previously mapped value.true there was no mapping for key, false otherwiseboolean delete(K key)
Map.remove(Object), but doesn't return the previously mapped value.true if a mapping for key existed and was removed, false otherwiseCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.