K
- map key classV
- map value class@FunctionalInterface public interface DefaultValueProvider<K,V>
ChronicleMapBuilder.defaultValueProvider(DefaultValueProvider)
configuration.Modifier and Type | Method and Description |
---|---|
Data<V> |
defaultValue(MapAbsentEntry<K,V> absentEntry)
Returns the "nil" value, which should be inserted into the map, in the given
absentEntry context. |
Data<V> defaultValue(@NotNull MapAbsentEntry<K,V> absentEntry)
absentEntry
context. This is primarily used in ChronicleMap.acquireUsing(K, V)
operation implementation, i. e. MapMethods.acquireUsing(net.openhft.chronicle.map.MapQueryContext<K, V, R>, net.openhft.chronicle.map.ReturnValue<V>)
.
The default implementation simply delegates to MapAbsentEntry.defaultValue()
.Copyright © 2017. All rights reserved.