mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Revert 'Make working with new bytes' and a couple of fixes
This commit is contained in:
+4
-4
@@ -31,22 +31,22 @@ public class SimpleMapOperationsListeningTest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Void replaceValue(@NotNull MapEntry<K, V> entry, Data<V, ?> newValue) {
|
||||
public Void replaceValue(@NotNull MapEntry<K, V> entry, Data<V> newValue) {
|
||||
System.out.println("replace " + entry.key() + ": " + entry.value() + " -> " + newValue);
|
||||
entry.doReplaceValue(newValue);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Void insert(@NotNull MapAbsentEntry<K, V> absentEntry, Data<V, ?> value) {
|
||||
public Void insert(@NotNull MapAbsentEntry<K, V> absentEntry, Data<V> value) {
|
||||
System.out.println("insert " + absentEntry.absentKey() + " -> " + value);
|
||||
absentEntry.doInsert(value);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Data<V, ?> defaultValue(@NotNull MapAbsentEntry<K, V> absentEntry) {
|
||||
Data<V, ?> defaultValue = absentEntry.defaultValue();
|
||||
public Data<V> defaultValue(@NotNull MapAbsentEntry<K, V> absentEntry) {
|
||||
Data<V> defaultValue = absentEntry.defaultValue();
|
||||
System.out.println("default " + absentEntry.absentKey() + " -> " + defaultValue);
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user