mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Renamed wrapValueAsValue() to wrapValueAsData after Value -> Data rename
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ public class DeprecatedMapKeyContextOnIteration<K, V> implements MapKeyContext<K
|
||||
@Override
|
||||
public boolean valueEqualTo(V value) {
|
||||
checkOnEachPublicOperation.checkOnEachPublicOperation();
|
||||
return Data.bytesEquivalent(e.entryValue, it.context().wrapValueAsValue(value));
|
||||
return Data.bytesEquivalent(e.entryValue, it.context().wrapValueAsData(value));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -54,7 +54,7 @@ public class DeprecatedMapKeyContextOnIteration<K, V> implements MapKeyContext<K
|
||||
@Override
|
||||
public boolean put(V newValue) {
|
||||
checkOnEachPublicOperation.checkOnEachPublicOperation();
|
||||
ops.replaceValue(it, it.context().wrapValueAsValue(newValue));
|
||||
ops.replaceValue(it, it.context().wrapValueAsData(newValue));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ public abstract class WrappedValueInstanceValueHolder<K, V, R> implements MapCon
|
||||
|
||||
|
||||
@Override
|
||||
public Data<V> wrapValueAsValue(V value) {
|
||||
public Data<V> wrapValueAsData(V value) {
|
||||
checkOnEachPublicOperation.checkOnEachPublicOperation();
|
||||
WrappedValueInstanceData<V, ?, ?> wrapped = this.wrappedValueInstanceValue;
|
||||
wrapped = wrapped.getUnusedWrappedValue();
|
||||
|
||||
+3
-3
@@ -53,7 +53,7 @@ public class DeprecatedMapAcquireContextOnQuery<K, V> implements MapKeyContext<K
|
||||
@Override
|
||||
public boolean valueEqualTo(V value) {
|
||||
checkOnEachPublicOperation.checkOnEachPublicOperation();
|
||||
return Data.bytesEquivalent(e.entryValue, q.wrapValueAsValue(value));
|
||||
return Data.bytesEquivalent(e.entryValue, q.wrapValueAsData(value));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -73,9 +73,9 @@ public class DeprecatedMapAcquireContextOnQuery<K, V> implements MapKeyContext<K
|
||||
updateLock().lock();
|
||||
MapEntry<K, V> entry = q.entry();
|
||||
if (entry != null) {
|
||||
q.replaceValue(entry, q.wrapValueAsValue(newValue));
|
||||
q.replaceValue(entry, q.wrapValueAsData(newValue));
|
||||
} else {
|
||||
q.insert(q.absentEntry(), q.wrapValueAsValue(newValue));
|
||||
q.insert(q.absentEntry(), q.wrapValueAsData(newValue));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
+3
-3
@@ -51,7 +51,7 @@ public class DeprecatedMapKeyContextOnQuery<K, V> implements MapKeyContext<K, V>
|
||||
@Override
|
||||
public boolean valueEqualTo(V value) {
|
||||
checkOnEachPublicOperation.checkOnEachPublicOperation();
|
||||
return Data.bytesEquivalent(e.entryValue, q.wrapValueAsValue(value));
|
||||
return Data.bytesEquivalent(e.entryValue, q.wrapValueAsData(value));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -70,9 +70,9 @@ public class DeprecatedMapKeyContextOnQuery<K, V> implements MapKeyContext<K, V>
|
||||
updateLock().lock();
|
||||
MapEntry<K, V> entry = q.entry();
|
||||
if (entry != null) {
|
||||
q.replaceValue(entry, q.wrapValueAsValue(newValue));
|
||||
q.replaceValue(entry, q.wrapValueAsData(newValue));
|
||||
} else {
|
||||
q.insert(q.absentEntry(), q.wrapValueAsValue(newValue));
|
||||
q.insert(q.absentEntry(), q.wrapValueAsData(newValue));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,6 @@ public class MapAbsent<K, V> implements MapAbsentEntry<K, V> {
|
||||
@Override
|
||||
public Data<V> defaultValue() {
|
||||
checkOnEachPublicOperation.checkOnEachPublicOperation();
|
||||
return q.wrapValueAsValue(mh.m().defaultValue(deprecatedMapKeyContext));
|
||||
return q.wrapValueAsData(mh.m().defaultValue(deprecatedMapKeyContext));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user