mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-240 improved assertions
This commit is contained in:
@@ -26,8 +26,7 @@ import java.io.Serializable;
|
||||
* value during {@link ChronicleMap#acquireUsing(Object, Object)
|
||||
* chronicleMap.acquireUsing()} call, when the given key is absent in the map. Example: if you
|
||||
* want {@code 1L} to be the off-heap updatable ChronicleMap's {@linkplain
|
||||
* ChronicleMapBuilder#defaultValue(Object) default value}, the most simple way
|
||||
* to achieve this is to {@linkplain ChronicleMapBuilder#prepareValueBytesOnAcquire(
|
||||
* ChronicleMapBuilder#defaultValue(Object) default value}.
|
||||
* PrepareValueBytes) configure} custom {@code PrepareValueBytes} strategy in {@link
|
||||
* ChronicleMapBuilder}: <pre>{@code
|
||||
* ChronicleMapBuilder.of(Key.class, LongValue.class)
|
||||
@@ -41,7 +40,7 @@ import java.io.Serializable;
|
||||
*
|
||||
* @param <K> the key type of {@link ChronicleMap}, on which {@code acquireUsing()} is queried
|
||||
* @param <V> the value type of {@link ChronicleMap}, on which {@code acquireUsing()} is queried
|
||||
* @see ChronicleMapBuilder#prepareValueBytesOnAcquire(PrepareValueBytes)
|
||||
|
||||
*/
|
||||
public interface PrepareValueBytes<K, V> extends Serializable {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user