Module org.jhotdraw8.icollection
Interface ReadOnlyNavigableMap<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Superinterfaces:
Iterable<Map.Entry<K,,V>> ReadOnlyMap<K,,V> ReadOnlySequencedMap<K,,V> ReadOnlySortedMap<K,V>
- All Known Subinterfaces:
ImmutableNavigableMap<K,V>
- All Known Implementing Classes:
MutableRedBlackMap,ReadOnlyNavigableMapFacade,RedBlackMap
A read-only interface to a navigable map. A navigable map is a SortedMap
extended with navigation methods returning the closest matches for given search
targets.
-
Method Summary
Modifier and TypeMethodDescriptionceilingEntry(K k) Returns the least entry in this map with a key greater than or equal to the given key, or null if there is no such entry.ceilingKey(K k) Returns the least entry in this map with a key greater than or equal to the given key, or null if there is no such key.floorEntry(K k) Returns the greatest entry in this map with a key less than or equal to the given key, or null if there is no such entry.Returns the greatest key in this map less than or equal to the given key, or null if there is no such key.higherEntry(K k) Returns the least entry in this map with a key greater than the given key, or null if there is no such entry.Returns the least key in this map greater than the given key, or null if there is no such key.lowerEntry(K k) Returns the greatest entry in this map with a key less than the given key, or null if there is no such entry.Returns the greatest key in this map less than the given key, or null if there is no such key.Methods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlyMap
containsEntry, containsKey, containsValue, equals, get, getOrDefault, hashCode, isEmpty, iterator, sizeMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySequencedMap
asMap, firstEntry, lastEntry, readOnlyEntrySet, readOnlyKeySet, readOnlyReversed, readOnlyValuesMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySortedMap
characteristics, comparator, spliterator
-
Method Details
-
ceilingEntry
Returns the least entry in this map with a key greater than or equal to the given key, or null if there is no such entry.- Parameters:
k- the given key- Returns:
- ceiling entry or null
-
floorEntry
Returns the greatest entry in this map with a key less than or equal to the given key, or null if there is no such entry.- Parameters:
k- the given key- Returns:
- floor entry or null
-
higherEntry
Returns the least entry in this map with a key greater than the given key, or null if there is no such entry.- Parameters:
k- the given key- Returns:
- higher entry or null
-
lowerEntry
Returns the greatest entry in this map with a key less than the given key, or null if there is no such entry.- Parameters:
k- the given key- Returns:
- lower entry or null
-
ceilingKey
Returns the least entry in this map with a key greater than or equal to the given key, or null if there is no such key.- Parameters:
k- the given key- Returns:
- ceiling key or null
-
floorKey
Returns the greatest key in this map less than or equal to the given key, or null if there is no such key.- Parameters:
k- the given key- Returns:
- floor key or null
-
higherKey
Returns the least key in this map greater than the given key, or null if there is no such key.- Parameters:
k- the given key- Returns:
- higher key or null
-
lowerKey
Returns the greatest key in this map less than the given key, or null if there is no such key.- Parameters:
k- the given key- Returns:
- lower key or null
-