diff --git a/src/main/java/net/openhft/chronicle/map/MapEventListener.java b/src/main/java/net/openhft/chronicle/map/MapEventListener.java index 72b8e2679..5cf73f8b9 100644 --- a/src/main/java/net/openhft/chronicle/map/MapEventListener.java +++ b/src/main/java/net/openhft/chronicle/map/MapEventListener.java @@ -26,22 +26,22 @@ import org.slf4j.LoggerFactory; import java.io.Serializable; /** - * Contains methods which are called when {@link ChronicleMap} key events occur. Typical use cases:
This is an adapter class - all methods have default implementations as no-ops. Extend this class and - * override only methods corresponding the events you are interested in. + *
This is an adapter class - all methods have default implementations as no-ops. Extend this + * class and override only methods corresponding the events you are interested in. * *
To configure {@code MapEventListener} for {@code ChronicleMap}, use {@link * AbstractChronicleMapBuilder#eventListener(MapEventListener)} method. * *
See {@link #logging(String)} implementation. * - *
All these calls are synchronous while a {@code ChronicleMap} lock is held so make them as quick as - * possible. + *
All these calls are synchronous while a {@code ChronicleMap} lock is held so make them as + * quick as possible. * - *
The {@code entry} passed to the methods is {@code Bytes} instance positioned at meta data area. See - * {@link ChronicleHashBuilder#metaDataBytes(int)} for more information. + *
The {@code entry} passed to the methods is {@code Bytes} instance positioned at meta data
+ * area. See {@link ChronicleHashBuilder#metaDataBytes(int)} for more information.
*
* @param This method is called when put is already happened.
*
* @param key the key the given value is put for
* @param newValue the value which is now associated with the given key
- * @param replacedValue the value which was replaced by {@code newValue}, {@code null}
- * if the key was absent in the map before current {@code ChronicleMap}
+ * @param replacedValue the value which was replaced by {@code newValue}, {@code null} if the
+ * key was absent in the map before current {@code ChronicleMap}
*/
public void onPut(K key, V newValue, @Nullable V replacedValue) {
// do nothing
}
/**
- * This is called when an entry is removed. Misses, i. e. when {@code map.remove(key)}
- * is called, but key is already absent in the map, are not notified.
+ * This is called when an entry is removed. Misses, i. e. when {@code map.remove(key)} is
+ * called, but key is already absent in the map, are not notified.
*
- * @param key the key removed from the map
- * @param value the value which was associated with the given key
+ * @param key the key removed from the map
+ * @param value the value which was associated with the given key
*/
public void onRemove(K key, V value) {
// do nothing
diff --git a/src/main/java/net/openhft/chronicle/map/OnHeapUpdatableChronicleMapBuilder.java b/src/main/java/net/openhft/chronicle/map/OnHeapUpdatableChronicleMapBuilder.java
index 5b7be09d9..eaed43fdf 100644
--- a/src/main/java/net/openhft/chronicle/map/OnHeapUpdatableChronicleMapBuilder.java
+++ b/src/main/java/net/openhft/chronicle/map/OnHeapUpdatableChronicleMapBuilder.java
@@ -36,7 +36,7 @@ import java.io.Serializable;
* non-{@link Byteable} values, which don't point to off-heap memory directly, including primitives ({@link
* Long}, {@link Double}, etc.), {@link String}s and {@link CharSequence}s, values implementing {@link
* BytesMarshallable}, {@link Externalizable} or {@link Serializable} interface, or any other values for which
- * {@linkplain #valueMarshaller(BytesMarshaller) custom marshaller} is provided. Use static {@link
+ * {@linkplain #valueMarshaller(BytesMarshaller) custom marshaller} is provided. Use static {@link
* #of(Class, Class) of(Key.class, Value.class)} method to obtain a {@code ChronicleMapOnHeapUpdatableBuilder}
* instance.
*
@@ -149,7 +149,7 @@ final class OnHeapUpdatableChronicleMapBuilder This serializer is used to serialize both keys and values, if they both require this: loosely
+ * If {@linkplain #valueMarshaller(BytesMarshaller) custom value marshaller} is
+ * {@inheritDoc} If {@linkplain #valueMarshaller(BytesMarshaller) custom value marshaller} is
* configured, this configuration is unused, because it is incapsulated in {@link
* BytesMarshaller#read(Bytes)} method (without provided instance to read the data into), i. e. it's is
* the user-side responsibility. Actually this is just a convenience method supporting value marshaller