mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-234 as agreeded changed method name to "putWithMapping()"
This commit is contained in:
@@ -204,12 +204,12 @@ public interface ChronicleMap<K, V> extends ConcurrentMap<K, V>, ChronicleHash {
|
||||
* Apply a mutator to the value for a key and return a result. A write lock is assumed. <p> If
|
||||
* there is no entry for this key it will be created and the value empty.
|
||||
*
|
||||
* @param <R> return type.
|
||||
* @param key to apply the mapping to
|
||||
* @param mutator to alter the value and calculate a result
|
||||
* @param <R> return type.
|
||||
* @return the result of the function.
|
||||
*/
|
||||
<R> R updateForKey(K key, @NotNull Mutator<? super V, R> mutator);
|
||||
<R> R putWithMapping(K key, @NotNull Mutator<? super V, R> mutator);
|
||||
|
||||
/**
|
||||
* exports all the entries to a {@link java.io.File} storing them in JSON format, an attempt is
|
||||
|
||||
Reference in New Issue
Block a user