Java-Lang -> Chronicle-Bytes, Chronicle-Values

This commit is contained in:
leventov
2015-11-22 22:10:39 +03:00
parent b6f5b7cab5
commit ade2196e72
277 changed files with 5193 additions and 12072 deletions
@@ -25,8 +25,8 @@ import org.jetbrains.annotations.NotNull;
*
* @param <K> map key class
* @param <V> map value class
* @see ChronicleMapBuilder#defaultValue(Object)
*/
@FunctionalInterface
public interface DefaultValueProvider<K, V> {
/**
@@ -34,9 +34,7 @@ public interface DefaultValueProvider<K, V> {
* {@code absentEntry} context. This is primarily used in {@link ChronicleMap#acquireUsing}
* operation implementation, i. e. {@link MapMethods#acquireUsing}.
*
* @implNote simply delegates to {@link MapAbsentEntry#defaultValue()}.
* The default implementation simply delegates to {@link MapAbsentEntry#defaultValue()}.
*/
default Data<V> defaultValue(@NotNull MapAbsentEntry<K, V> absentEntry) {
return absentEntry.defaultValue();
}
Data<V> defaultValue(@NotNull MapAbsentEntry<K, V> absentEntry);
}