public abstract class WrappedValueInstanceDataHolderAccess<K,V,R> extends Object implements MapContext<K,V,R>, SetContext<K,R>
| Constructor and Description |
|---|
WrappedValueInstanceDataHolderAccess() |
| Modifier and Type | Method and Description |
|---|---|
Data<V> |
wrapValueAsData(V value)
Wraps the given value as a
Data. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithash, map, wrapValueBytesAsDatasetinsert, removeinsert, remove, replaceValuedefaultValuepublic WrappedValueInstanceDataHolderAccess()
public Data<V> wrapValueAsData(V value)
MapContextData. Useful when you need to pass a value
to some method accepting Data, for example, MapEntryOperations.replaceValue(
MapEntry, Data), without allocating new objects (i. e. garbage) and ThreadLocals.
The returned Data object shouldn't outlive this MapContext.
wrapValueAsData in interface MapContext<K,V,R>value - the value object to wrapDataCopyright © 2024. All rights reserved.