mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
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:
@@ -2,7 +2,8 @@ package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.map.replication.MapRemoteOperations;
|
||||
|
||||
final class DefaultSpi implements MapMethods, MapEntryOperations, MapRemoteOperations {
|
||||
final class DefaultSpi implements MapMethods, MapEntryOperations, MapRemoteOperations,
|
||||
DefaultValueProvider {
|
||||
static final DefaultSpi DEFAULT_SPI = new DefaultSpi();
|
||||
static <K, V, R> MapMethods<K, V, R> mapMethods() {
|
||||
return DEFAULT_SPI;
|
||||
@@ -15,4 +16,8 @@ final class DefaultSpi implements MapMethods, MapEntryOperations, MapRemoteOpera
|
||||
static <K, V, R> MapRemoteOperations<K, V, R> mapRemoteOperations() {
|
||||
return DEFAULT_SPI;
|
||||
}
|
||||
|
||||
static <K, V> DefaultValueProvider<K, V> defaultValueProvider() {
|
||||
return DEFAULT_SPI;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user