SortedMap

open class SortedMap<K, V>(val comparator: Comparator<K>) : MutableMapExt<K, V>

Constructors

Link copied to clipboard
constructor(comparator: Comparator<K>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val keys: MutableSet<K>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: MutableCollection<V>

Functions

Link copied to clipboard
fun <K, V> MutableMapList<K, V>.append(key: K, value: V): MutableMapList<K, V>
Link copied to clipboard
fun <K, V> MutableMapList<K, V>.appendAll(vararg items: Pair<K, V>): MutableMapList<K, V>
Link copied to clipboard
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun containsKey(key: K): Boolean
Link copied to clipboard
open override fun containsValue(value: V): Boolean
Link copied to clipboard
inline fun fastForEach(block: (index: Int, key: K, value: V) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <K, V> MapList<K, V>.flatten(): List<Pair<K, V>>
Link copied to clipboard
fun <K, V> Map<K, V>.flip(): Map<V, K>
Link copied to clipboard
open operator override fun get(key: K): V?
Link copied to clipboard
fun <K, V> MapList<K, V>.getFirst(key: K): V?
Link copied to clipboard
fun getKeyAt(index: Int): K
Link copied to clipboard
fun <K, V> MapList<K, V>.getLast(key: K): V?
Link copied to clipboard
fun getValueAt(index: Int): V
Link copied to clipboard
fun <K> MutableMap<K, Int>.incr(key: K, delta: Int = +1): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun keysToList(): List<K>
Link copied to clipboard
fun nearestHigh(key: K): K?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun nearestLow(key: K): K?
Link copied to clipboard
Link copied to clipboard
fun nearestLowHighIndex(key: K, doHigh: Boolean): Int
Link copied to clipboard
fun nearestLowIndex(key: K): Int
Link copied to clipboard
open override fun put(key: K, value: V): V?
Link copied to clipboard
open override fun putAll(from: Map<out K, V>)
Link copied to clipboard
open override fun remove(key: K): V?
Link copied to clipboard
fun removeAt(index: Int)
Link copied to clipboard
fun <K, V> MutableMapList<K, V>.replace(key: K, value: V): MutableMapList<K, V>
Link copied to clipboard
fun <K, V> MutableMapList<K, V>.replaceAll(vararg items: Pair<K, V>): MutableMapList<K, V>
Link copied to clipboard
operator fun set(key: K, value: V)
Link copied to clipboard
fun swap(indexL: Int, indexR: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> Map<Int, T>.toIntMap(): IntMap<T>
Link copied to clipboard
fun toList(): List<Pair<K, V>>
Link copied to clipboard
fun toMap(): Map<K, V>
Link copied to clipboard