mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add SetEntry as parent interface for MapEntry- fixes #201
This commit is contained in:
@@ -19,7 +19,7 @@ package net.openhft.chronicle.map;
|
||||
import net.openhft.chronicle.bytes.BytesStore;
|
||||
import net.openhft.chronicle.hash.ChronicleHash;
|
||||
import net.openhft.chronicle.hash.Data;
|
||||
import net.openhft.chronicle.hash.HashContext;
|
||||
import net.openhft.chronicle.set.SetContext;
|
||||
|
||||
/**
|
||||
* Context, in which {@link MapEntry MapEntries} are accessed. {@code MapContext} allows to access
|
||||
@@ -36,7 +36,7 @@ import net.openhft.chronicle.hash.HashContext;
|
||||
* @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>, DefaultValueProvider<K, V> {
|
||||
extends SetContext<K, R>, MapEntryOperations<K, V, R>, DefaultValueProvider<K, V> {
|
||||
/**
|
||||
* Returns the accessed {@code ChronicleMap}. Synonym to {@link #map()}.
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.hash.Data;
|
||||
import net.openhft.chronicle.hash.HashEntry;
|
||||
import net.openhft.chronicle.set.SetEntry;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -28,7 +28,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
* @see MapEntryOperations
|
||||
* @see MapQueryContext#entry()
|
||||
*/
|
||||
public interface MapEntry<K, V> extends HashEntry<K> {
|
||||
public interface MapEntry<K, V> extends SetEntry<K> {
|
||||
@Override
|
||||
@NotNull
|
||||
MapContext<K, V, ?> context();
|
||||
|
||||
Reference in New Issue
Block a user