Moved DefaultValueProvider to the new Contexts API; removed defaultValue() SPI from MapEntryOperations (essentially replaced by DefaultValueProvider); Removed the old contexts, KeyContext and MapKeyContext completely

This commit is contained in:
leventov
2015-07-24 21:36:55 +03:00
parent 9fe1dab477
commit 340ab09409
23 changed files with 89 additions and 389 deletions
@@ -57,10 +57,10 @@ public interface MapAbsentEntry<K, V> extends HashAbsentEntry<K> {
* implementation, i. e. {@link MapMethods#acquireUsing}.
*
* <p>This method if the default implementation for {@link
* MapEntryOperations#defaultValue}, which might be customized over the default.
*
* @return the default value to be inserted into the map
* @see MapEntryOperations#defaultValue(MapAbsentEntry)
* DefaultValueProvider#defaultValue(MapAbsentEntry)},
* which might be customized over the default.
*
* @see DefaultValueProvider#defaultValue(MapAbsentEntry)
*/
@NotNull
Data<V> defaultValue();