TreeMap

open class TreeMap<K : Any, V : Any> : MutableMap<K, V>

Constructors

Link copied to clipboard
fun TreeMap()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns the entry corresponding to the specified key; if no such entry exists, returns the entry for the least key greater than the specified key; if no such entry exists (i.e., the greatest key in the Tree is less than the specified key), returns null.

Link copied to clipboard
fun ceilingKey(key: K): K?
Link copied to clipboard
fun ceilingValue(key: K): V?
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
Link copied to clipboard
fun firstKey(): K
Link copied to clipboard
fun firstValue(): V
Link copied to clipboard

Returns the entry corresponding to the specified key; if no such entry exists, returns the entry for the greatest key less than the specified key; if no such entry exists, returns {@code null}.

Link copied to clipboard
fun floorKey(key: K): K?
Link copied to clipboard
fun floorValue(key: K): V?
Link copied to clipboard
open operator override fun get(key: K): V?
Link copied to clipboard

Returns the entry for the least key greater than the specified key; if no such entry exists, returns the entry for the least key greater than the specified key; if no such entry exists returns {@code null}.

Link copied to clipboard
fun higherKey(key: K): K?
Link copied to clipboard
fun higherValue(key: K): V?
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
fun lastKey(): K
Link copied to clipboard
fun lastValue(): V
Link copied to clipboard

Returns the entry for the greatest key less than the specified key; if no such entry exists (i.e., the least key in the Tree is greater than the specified key), returns {@code null}.

Link copied to clipboard
fun lowerKey(key: K): K?
Link copied to clipboard
fun lowerValue(key: K): V?
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?

Properties

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