Add SetEntry as parent interface for MapEntry- fixes #201

This commit is contained in:
Dmitry Pisklov
2020-01-13 16:27:28 +00:00
parent 2f03b71252
commit d833ab83aa
2 changed files with 4 additions and 4 deletions
@@ -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();