HCOLL-240 improved assertions

This commit is contained in:
Rob Austin
2014-12-11 20:02:28 +00:00
parent be4d32b82c
commit ed0c964bd3
3 changed files with 70 additions and 51 deletions
@@ -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 {