Class AbstractNavigableMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
io.permazen.util.AbstractNavigableMap<K,V>
Type Parameters:
K - key type
V - value type
All Implemented Interfaces:
Map<K,V>, NavigableMap<K,V>, SortedMap<K,V>
Direct Known Subclasses:
AbstractKVNavigableMap, ConvertedNavigableMap, ImmutableNavigableMap

public abstract class AbstractNavigableMap<K,V> extends AbstractMap<K,V> implements NavigableMap<K,V>
Support superclass for NavigableMap implementations based on database entries.

For a read-only implementation, subclasses should implement comparator(), get(), entrySet(), navigableKeySet(), and createSubMap() to handle reversed and restricted range sub-maps.

For a mutable implementation, subclasses should also implement put(), remove(), clear(), and make the navigableKeySet() and entrySet() iterators mutable.

All overridden methods must be aware of the range restriction bounds, if any.