mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Made VanillaChronicleMap use putReturnsNull and removeReturnsNull configs
This commit is contained in:
@@ -433,6 +433,15 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
|||||||
"during map building");
|
"during map building");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
V prevValueOnPut(MapKeyContext<K, V> context) {
|
||||||
|
return putReturnsNull ? null : super.prevValueOnPut(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
V prevValueOnRemove(MapKeyContext<K, V> context) {
|
||||||
|
return removeReturnsNull ? null : super.prevValueOnRemove(context);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public V newValueInstance() {
|
public V newValueInstance() {
|
||||||
|
|||||||
Reference in New Issue
Block a user