HCOLL-234 as agreeded changed method name to "putWithMapping()"

This commit is contained in:
Rob Austin
2014-12-09 12:57:10 +00:00
parent 2df0426d83
commit 767543cea6
8 changed files with 40 additions and 48 deletions
@@ -559,7 +559,7 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
}
@Override
public <R> R putWithMapping(K key, @NotNull Mutator<? super V, R> mutator) {
public <R> R putWith(K key, @NotNull Mutator<? super V, R> mutator) {
if (!(CharSequence.class.isAssignableFrom(vClass))) {
@@ -575,8 +575,8 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
R result = mutator.update(entry.value());
((MutableLockedEntry) entry).value(result);
return result;
}
}
@@ -2707,7 +2707,7 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
extends MutableLockedEntry<K, KI, MKI, V, VI, MVI>
implements WriteContext<K, V> {
private boolean wasPresent;
private boolean wasPresent = true;
WriteLocked(SegmentState segmentState) {
super(segmentState);