interface SortedMap
source · line 8public
public interface SortedMap<K, V> : Map<K, V>
- Supertype
Map<K, V> - Inherited
operator fun contains(value: K): Boolean· Map<K, V> - Inherited
fun containsKey(key: K): Boolean· Map<K, V> - Inherited
operator fun get(key: K): Option<V>· Map<K, V> - Inherited
val entries: Collection<Map.Entry<K, V>>· Map<K, V> - Inherited
operator fun iterator(): Iterator<Map.Entry<K, V>>· Iterable<Map.Entry<K, V>> - Inherited
val keys: Set<K>· Map<K, V> - Inherited
val size: Long· Map<K, V> - Inherited
val values: Collection<V>· Map<K, V>
A map ordered by its comparator, with nearest-key queries returning None when no bound exists.
Extensions
function higherEntry
source · line 36public
public fun higherEntry(key: K): Map.Entry<K, V>?
Returns the least entry strictly above the key, or None.
parameter key
source · line 36public
key: K
function firstEntryOrNone
source · line 16public
public fun firstEntryOrNone(): Map.Entry<K, V>?
Returns the least-key entry, or None when empty.
function floorEntry
source · line 28public
public fun floorEntry(key: K): Map.Entry<K, V>?
Returns the greatest entry at or below the key, or None.
parameter key
source · line 28public
key: K
property comparator
source · line 12public
public val comparator: Comparator<K>
get: public read-only
The comparator used for ordering and, for ordered maps/sets, equivalence.
function lowerEntry
source · line 24public
public fun lowerEntry(key: K): Map.Entry<K, V>?
Returns the greatest entry strictly below the key, or None.
parameter key
source · line 24public
key: K
function lastEntryOrNone
source · line 20public
public fun lastEntryOrNone(): Map.Entry<K, V>?
Returns the greatest-key entry, or None when empty.
function ceilingEntry
source · line 32public
public fun ceilingEntry(key: K): Map.Entry<K, V>?
Returns the least entry at or above the key, or None.
parameter key
source · line 32public
key: K
type parameter K
source · line 8public
K
type parameter V
source · line 8public
V