CE-134 Add ChronicleMap.update(K, V) method

This commit is contained in:
leventov
2015-08-18 02:31:22 +03:00
parent 2f32764082
commit bc24505e49
8 changed files with 351 additions and 0 deletions
@@ -206,6 +206,12 @@ public interface ChronicleMap<K, V> extends ConcurrentMap<K, V>, ChronicleHash {
*/
V putMapped(K key, @NotNull UnaryOperator<V> unaryOperator);
/**
* A special operation, similar to {@link #replace(Object, Object, Object)
* replace(key, value, value)}, but puts the entry even if it was absent in the map.
*/
UpdateResult update(K key, V value);
/**
* Exports all the entries to a {@link java.io.File} storing them in JSON format, an attempt is
* made where possible to use standard java serialisation and keep the data human readable, data