IntMap

class IntMap<T>

Constructors

Link copied to clipboard
constructor(initialCapacity: Int = 16, loadFactor: Double = 0.75)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Entry<T>(var key: Int, var value: T?)
Link copied to clipboard
class Iterator<T>(val map: IntMap<T>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var size: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun clone(): IntMap<T>
Link copied to clipboard
operator fun contains(key: Int): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
inline fun fastForEach(callback: (key: Int, value: T) -> Unit)
Link copied to clipboard
inline fun fastForEachNullable(callback: (key: Int, value: T?) -> Unit)
Link copied to clipboard
inline fun fastKeyForEach(callback: (key: Int) -> Unit)
Link copied to clipboard
inline fun fastValueForEach(callback: (value: T) -> Unit)
Link copied to clipboard
inline fun fastValueForEachNullable(callback: (value: T?) -> Unit)
Link copied to clipboard
fun firstKey(): Int
Link copied to clipboard
fun firstValue(): T
Link copied to clipboard
operator fun get(key: Int): T?
Link copied to clipboard
inline fun getOrPut(key: Int, callback: (Int) -> T): T
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun putAll(other: IntMap<T>)
Link copied to clipboard
fun remove(key: Int): Boolean
Link copied to clipboard
fun removeRange(src: Int, dst: Int)
Link copied to clipboard
operator fun set(key: Int, value: T?): T?
Link copied to clipboard
fun <T> IntMap<T>.toMap(): Map<Int, T>