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
@@ -31,7 +31,8 @@ import net.openhft.chronicle.hash.Data;
* @param <V> the map value type
* @param <R> the return type of {@link MapEntryOperations} specified for the queried map
*/
public interface MapContext<K, V, R> extends HashContext<K>, MapEntryOperations<K, V, R> {
public interface MapContext<K, V, R>
extends HashContext<K>, MapEntryOperations<K, V, R>, DefaultValueProvider<K, V> {
/**
* Returns the accessed {@code ChronicleMap}. Synonym to {@link #map()}.
*/