mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Standard code formatting
This commit is contained in:
@@ -27,25 +27,25 @@ import org.jetbrains.annotations.NotNull;
|
||||
*
|
||||
* @param <K> type of the key in {@code ChronicleMap}
|
||||
* @param <V> type of the value in {@code ChronicleMap}
|
||||
*
|
||||
* @see MapEntryOperations
|
||||
* @see MapQueryContext#absentEntry()
|
||||
*/
|
||||
public interface MapAbsentEntry<K, V> extends HashAbsentEntry<K> {
|
||||
|
||||
@Override
|
||||
@NotNull MapContext<K, V, ?> context();
|
||||
|
||||
@NotNull
|
||||
MapContext<K, V, ?> context();
|
||||
|
||||
/**
|
||||
* Inserts the new entry into the map, of {@linkplain #absentKey() the key} and the given {@code
|
||||
* value}.
|
||||
*
|
||||
* <p>
|
||||
* <p>This method is the default implementation for {@link MapEntryOperations#insert(
|
||||
* MapAbsentEntry, Data)}, which might be customized over the default.
|
||||
*MapAbsentEntry, Data)}, which might be customized over the default.
|
||||
*
|
||||
* @param value the value to insert into the map along with {@link #absentKey() the key}
|
||||
* @throws IllegalStateException if some locking/state conditions required to perform insertion
|
||||
* operation are not met
|
||||
* operation are not met
|
||||
* @see MapEntryOperations#insert(MapAbsentEntry, Data)
|
||||
*/
|
||||
void doInsert(Data<V> value);
|
||||
@@ -54,7 +54,7 @@ public interface MapAbsentEntry<K, V> extends HashAbsentEntry<K> {
|
||||
* Returns the <i>default</i> (or <i>nil</i>) value, that should be inserted into the map in
|
||||
* this context. This is primarily used in {@link ChronicleMap#acquireUsing} operation
|
||||
* implementation, i. e. {@link MapMethods#acquireUsing}.
|
||||
*
|
||||
* <p>
|
||||
* <p>This method if the default implementation for {@link
|
||||
* DefaultValueProvider#defaultValue(MapAbsentEntry)},
|
||||
* which might be customized over the default.
|
||||
|
||||
Reference in New Issue
Block a user