K
- the map key typeV
- the map value typepublic interface MapEntry<K,V> extends SetEntry<K>
ChronicleMap
.MapEntryOperations
,
MapQueryContext.entry()
Modifier and Type | Method and Description |
---|---|
MapContext<K,V,?> |
context()
Returns the context, in which the entry is accessed.
|
void |
doRemove()
Removes the entry from the map.
|
void |
doReplaceValue(Data<V> newValue)
Replaces the entry's value with the given
newValue . |
Data<V> |
value()
Returns the entry value.
|
@NotNull MapContext<K,V,?> context()
HashEntry
void doReplaceValue(Data<V> newValue)
newValue
.
This method is the default implementation for MapEntryOperations.replaceValue(
MapEntry, Data)
, which might be customized over the default.
newValue
- the value to be put into the map instead of the current
valueIllegalStateException
- if some locking/state conditions required to perform replace
operation are not metCopyright © 2022. All rights reserved.