androidx.collection

Classes

ArrayMap

ArrayMap is a generic key->value mapping data structure that is designed to be more memory efficient than a traditional java.util.HashMap, this implementation is a version of the platform's android.util.ArrayMap that can be used on older versions of the platform.

android
ArraySet

ArraySet is a generic set data structure that is designed to be more memory efficient than a traditional HashSet.

Cmn
android
N
CircularArray

CircularArray is a generic circular array data structure that provides O(1) random read, O(1) prepend and O(1) append.

Cmn
CircularIntArray

CircularIntArray is a circular integer array data structure that provides O(1) random read, O(1) prepend and O(1) append.

Cmn
FloatFloatMap

FloatFloatMap is a container with a Map-like interface for Float primitive keys and Float primitive values.

Cmn
FloatFloatPair

Container to ease passing around a tuple of two Float values.

Cmn
FloatIntMap

FloatIntMap is a container with a Map-like interface for Float primitive keys and Int primitive values.

Cmn
FloatList

FloatList is a List-like collection for Float values.

Cmn
FloatLongMap

FloatLongMap is a container with a Map-like interface for Float primitive keys and Long primitive values.

Cmn
FloatObjectMap

FloatObjectMap is a container with a Map-like interface for keys with Float primitives and reference type values.

Cmn
FloatSet

FloatSet is a container with a Set-like interface designed to avoid allocations, including boxing.

Cmn
IntFloatMap

IntFloatMap is a container with a Map-like interface for Int primitive keys and Float primitive values.

Cmn
IntIntMap

IntIntMap is a container with a Map-like interface for Int primitive keys and Int primitive values.

Cmn
IntIntPair

Container to ease passing around a tuple of two Int values.

Cmn
IntList

IntList is a List-like collection for Int values.

Cmn
IntLongMap

IntLongMap is a container with a Map-like interface for Int primitive keys and Long primitive values.

Cmn
IntObjectMap

IntObjectMap is a container with a Map-like interface for keys with Int primitives and reference type values.

Cmn
IntSet

IntSet is a container with a Set-like interface designed to avoid allocations, including boxing.

Cmn
LongFloatMap

LongFloatMap is a container with a Map-like interface for Long primitive keys and Float primitive values.

Cmn
LongIntMap

LongIntMap is a container with a Map-like interface for Long primitive keys and Int primitive values.

Cmn
LongList

LongList is a List-like collection for Long values.

Cmn
LongLongMap

LongLongMap is a container with a Map-like interface for Long primitive keys and Long primitive values.

Cmn
LongLongPair

Container to ease passing around a tuple of two Long values.

Cmn
LongObjectMap

LongObjectMap is a container with a Map-like interface for keys with Long primitives and reference type values.

Cmn
LongSet

LongSet is a container with a Set-like interface designed to avoid allocations, including boxing.

Cmn
LongSparseArray

SparseArray mapping longs to Objects.

Cmn
android
N
LruCache

Static library version of android.util.LruCache.

Cmn
MutableFloatFloatMap

MutableFloatFloatMap is a container with a MutableMap-like interface for Float primitive keys and Float primitive values.

Cmn
MutableFloatIntMap

MutableFloatIntMap is a container with a MutableMap-like interface for Float primitive keys and Int primitive values.

Cmn
MutableFloatList

MutableFloatList is a MutableList-like collection for Float values.

Cmn
MutableFloatLongMap

MutableFloatLongMap is a container with a MutableMap-like interface for Float primitive keys and Long primitive values.

Cmn
MutableFloatObjectMap

MutableFloatObjectMap is a container with a MutableMap-like interface for keys with Float primitives and reference type values.

Cmn
MutableFloatSet

MutableFloatSet is a container with a MutableSet-like interface based on a flat hash table implementation.

Cmn
MutableIntFloatMap

MutableIntFloatMap is a container with a MutableMap-like interface for Int primitive keys and Float primitive values.

Cmn
MutableIntIntMap

MutableIntIntMap is a container with a MutableMap-like interface for Int primitive keys and Int primitive values.

Cmn
MutableIntList

MutableIntList is a MutableList-like collection for Int values.

Cmn
MutableIntLongMap

MutableIntLongMap is a container with a MutableMap-like interface for Int primitive keys and Long primitive values.

Cmn
MutableIntObjectMap

MutableIntObjectMap is a container with a MutableMap-like interface for keys with Int primitives and reference type values.

Cmn
MutableIntSet

MutableIntSet is a container with a MutableSet-like interface based on a flat hash table implementation.

Cmn
MutableLongFloatMap

MutableLongFloatMap is a container with a MutableMap-like interface for Long primitive keys and Float primitive values.

Cmn
MutableLongIntMap

MutableLongIntMap is a container with a MutableMap-like interface for Long primitive keys and Int primitive values.

Cmn
MutableLongList

MutableLongList is a MutableList-like collection for Long values.

Cmn
MutableLongLongMap

MutableLongLongMap is a container with a MutableMap-like interface for Long primitive keys and Long primitive values.

Cmn
MutableLongObjectMap

MutableLongObjectMap is a container with a MutableMap-like interface for keys with Long primitives and reference type values.

Cmn
MutableLongSet

MutableLongSet is a container with a MutableSet-like interface based on a flat hash table implementation.

Cmn
MutableObjectFloatMap

MutableObjectFloatMap is a container with a MutableMap-like interface for keys with reference types and Float primitives for values.

Cmn
MutableObjectIntMap

MutableObjectIntMap is a container with a MutableMap-like interface for keys with reference types and Int primitives for values.

Cmn
MutableObjectList

MutableObjectList is a MutableList-like collection for reference types.

Cmn
MutableObjectLongMap

MutableObjectLongMap is a container with a MutableMap-like interface for keys with reference types and Long primitives for values.

Cmn
MutableScatterMap

MutableScatterMap is a container with a Map-like interface based on a flat hash table implementation (the key/value mappings are not stored by nodes but directly into arrays).

Cmn
MutableScatterSet

MutableScatterSet is a container with a MutableSet-like interface based on a flat hash table implementation.

Cmn
ObjectFloatMap

ObjectFloatMap is a container with a Map-like interface for keys with reference types and Float primitives for values.

Cmn
ObjectIntMap

ObjectIntMap is a container with a Map-like interface for keys with reference types and Int primitives for values.

Cmn
ObjectList

ObjectList is a List-like collection for reference types.

Cmn
ObjectLongMap

ObjectLongMap is a container with a Map-like interface for keys with reference types and Long primitives for values.

Cmn
ScatterMap

ScatterMap is a container with a Map-like interface based on a flat hash table implementation (the key/value mappings are not stored by nodes but directly into arrays).

Cmn
ScatterSet

ScatterSet is a container with a Set-like interface based on a flat hash table implementation.

Cmn
SimpleArrayMap

Base implementation of androidx.collection.ArrayMap that doesn't include any standard Java container API interoperability.

Cmn
SparseArrayCompat

SparseArrays map integers to Objects.

Cmn
android
N

Top-level functions summary

inline ArrayMap<K, V>
<K : Any?, V : Any?> arrayMapOf()

Returns an empty new ArrayMap.

android
ArrayMap<K, V>
<K : Any?, V : Any?> arrayMapOf(vararg pairs: Pair<K, V>)

Returns a new ArrayMap with the specified contents, given as a list of pairs where the first component is the key and the second component is the value.

android
inline ArraySet<T>
<T : Any?> arraySetOf()

Returns an empty new ArraySet.

Cmn
ArraySet<T>
<T : Any?> arraySetOf(vararg values: T)

Returns a new ArraySet with the specified contents.

Cmn
FloatFloatMap

Returns an empty, read-only FloatFloatMap.

Cmn
FloatIntMap

Returns an empty, read-only FloatIntMap.

Cmn
FloatList
Cmn
FloatLongMap

Returns an empty, read-only FloatLongMap.

Cmn
FloatObjectMap<V>

Returns an empty, read-only FloatObjectMap.

Cmn
FloatSet

Returns an empty, read-only FloatSet.

Cmn
IntFloatMap

Returns an empty, read-only IntFloatMap.

Cmn
IntIntMap

Returns an empty, read-only IntIntMap.

Cmn
IntList
Cmn
IntLongMap

Returns an empty, read-only IntLongMap.

Cmn
IntObjectMap<V>

Returns an empty, read-only IntObjectMap.

Cmn
IntSet

Returns an empty, read-only IntSet.

Cmn
LongFloatMap

Returns an empty, read-only LongFloatMap.

Cmn
LongIntMap

Returns an empty, read-only LongIntMap.

Cmn
LongList
Cmn
LongLongMap

Returns an empty, read-only LongLongMap.

Cmn
LongObjectMap<V>

Returns an empty, read-only LongObjectMap.

Cmn
LongSet

Returns an empty, read-only LongSet.

Cmn
ObjectFloatMap<K>

Returns an empty, read-only ObjectFloatMap.

Cmn
ObjectIntMap<K>

Returns an empty, read-only ObjectIntMap.

Cmn
ObjectList<E>
<E : Any?> emptyObjectList()
Cmn
ObjectLongMap<K>

Returns an empty, read-only ObjectLongMap.

Cmn
ScatterMap<K, V>
<K : Any?, V : Any?> emptyScatterMap()

Returns an empty, read-only ScatterMap.

Cmn
ScatterSet<E>
<E : Any?> emptyScatterSet()

Returns an empty, read-only ScatterSet.

Cmn
FloatFloatMap

Returns a new MutableFloatFloatMap.

Cmn
FloatFloatMap
floatFloatMapOf(key1: Float, value1: Float)

Returns a new FloatFloatMap with key1 associated with value1.

Cmn
FloatFloatMap
floatFloatMapOf(key1: Float, value1: Float, key2: Float, value2: Float)

Returns a new FloatFloatMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
FloatFloatMap
floatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float
)

Returns a new FloatFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
FloatFloatMap
floatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float
)

Returns a new FloatFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
FloatFloatMap
floatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float,
    key5: Float,
    value5: Float
)

Returns a new FloatFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
FloatIntMap

Returns a new MutableFloatIntMap.

Cmn
FloatIntMap
floatIntMapOf(key1: Float, value1: Int)

Returns a new FloatIntMap with key1 associated with value1.

Cmn
FloatIntMap
floatIntMapOf(key1: Float, value1: Int, key2: Float, value2: Int)

Returns a new FloatIntMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
FloatIntMap
floatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int
)

Returns a new FloatIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
FloatIntMap
floatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int
)

Returns a new FloatIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
FloatIntMap
floatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int,
    key5: Float,
    value5: Int
)

Returns a new FloatIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
FloatList
Cmn
FloatList
floatListOf(element1: Float)
Cmn
FloatList
floatListOf(vararg elements: Float)
Cmn
FloatList
floatListOf(element1: Float, element2: Float)
Cmn
FloatList
floatListOf(element1: Float, element2: Float, element3: Float)
Cmn
FloatLongMap

Returns a new MutableFloatLongMap.

Cmn
FloatLongMap
floatLongMapOf(key1: Float, value1: Long)

Returns a new FloatLongMap with key1 associated with value1.

Cmn
FloatLongMap
floatLongMapOf(key1: Float, value1: Long, key2: Float, value2: Long)

Returns a new FloatLongMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
FloatLongMap
floatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long
)

Returns a new FloatLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
FloatLongMap
floatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long
)

Returns a new FloatLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
FloatLongMap
floatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long,
    key5: Float,
    value5: Long
)

Returns a new FloatLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
FloatObjectMap<V>

Returns an empty, read-only FloatObjectMap.

Cmn
FloatObjectMap<V>
<V : Any?> floatObjectMapOf(key1: Float, value1: V)

Returns a new FloatObjectMap with key1 associated with value1.

Cmn
FloatObjectMap<V>
<V : Any?> floatObjectMapOf(key1: Float, value1: V, key2: Float, value2: V)

Returns a new FloatObjectMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
FloatObjectMap<V>
<V : Any?> floatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V
)

Returns a new FloatObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
FloatObjectMap<V>
<V : Any?> floatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V
)

Returns a new FloatObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
FloatObjectMap<V>
<V : Any?> floatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V,
    key5: Float,
    value5: V
)

Returns a new FloatObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
FloatSet

Returns an empty, read-only ScatterSet.

Cmn
FloatSet
floatSetOf(element1: Float)

Returns a new read-only FloatSet with only element1 in it.

Cmn
FloatSet
floatSetOf(vararg elements: Float)

Returns a new read-only FloatSet with only elements in it.

Cmn
FloatSet
floatSetOf(element1: Float, element2: Float)

Returns a new read-only FloatSet with only element1 and element2 in it.

Cmn
FloatSet
floatSetOf(element1: Float, element2: Float, element3: Float)

Returns a new read-only FloatSet with only element1, element2, and element3 in it.

Cmn
IntFloatMap

Returns a new MutableIntFloatMap.

Cmn
IntFloatMap
intFloatMapOf(key1: Int, value1: Float)

Returns a new IntFloatMap with key1 associated with value1.

Cmn
IntFloatMap
intFloatMapOf(key1: Int, value1: Float, key2: Int, value2: Float)

Returns a new IntFloatMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
IntFloatMap
intFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float
)

Returns a new IntFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
IntFloatMap
intFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float
)

Returns a new IntFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
IntFloatMap
intFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float,
    key5: Int,
    value5: Float
)

Returns a new IntFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
IntIntMap

Returns a new MutableIntIntMap.

Cmn
IntIntMap
intIntMapOf(key1: Int, value1: Int)

Returns a new IntIntMap with key1 associated with value1.

Cmn
IntIntMap
intIntMapOf(key1: Int, value1: Int, key2: Int, value2: Int)

Returns a new IntIntMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
IntIntMap
intIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int
)

Returns a new IntIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
IntIntMap
intIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int
)

Returns a new IntIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
IntIntMap
intIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int,
    key5: Int,
    value5: Int
)

Returns a new IntIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
IntList
Cmn
IntList
intListOf(element1: Int)
Cmn
IntList
intListOf(vararg elements: Int)
Cmn
IntList
intListOf(element1: Int, element2: Int)
Cmn
IntList
intListOf(element1: Int, element2: Int, element3: Int)
Cmn
IntLongMap

Returns a new MutableIntLongMap.

Cmn
IntLongMap
intLongMapOf(key1: Int, value1: Long)

Returns a new IntLongMap with key1 associated with value1.

Cmn
IntLongMap
intLongMapOf(key1: Int, value1: Long, key2: Int, value2: Long)

Returns a new IntLongMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
IntLongMap
intLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long
)

Returns a new IntLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
IntLongMap
intLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long
)

Returns a new IntLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
IntLongMap
intLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long,
    key5: Int,
    value5: Long
)

Returns a new IntLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
IntObjectMap<V>
<V : Any?> intObjectMapOf()

Returns an empty, read-only IntObjectMap.

Cmn
IntObjectMap<V>
<V : Any?> intObjectMapOf(key1: Int, value1: V)

Returns a new IntObjectMap with key1 associated with value1.

Cmn
IntObjectMap<V>
<V : Any?> intObjectMapOf(key1: Int, value1: V, key2: Int, value2: V)

Returns a new IntObjectMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
IntObjectMap<V>
<V : Any?> intObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V
)

Returns a new IntObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
IntObjectMap<V>
<V : Any?> intObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V
)

Returns a new IntObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
IntObjectMap<V>
<V : Any?> intObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V,
    key5: Int,
    value5: V
)

Returns a new IntObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
IntSet

Returns an empty, read-only ScatterSet.

Cmn
IntSet
intSetOf(element1: Int)

Returns a new read-only IntSet with only element1 in it.

Cmn
IntSet
intSetOf(vararg elements: Int)

Returns a new read-only IntSet with only elements in it.

Cmn
IntSet
intSetOf(element1: Int, element2: Int)

Returns a new read-only IntSet with only element1 and element2 in it.

Cmn
IntSet
intSetOf(element1: Int, element2: Int, element3: Int)

Returns a new read-only IntSet with only element1, element2, and element3 in it.

Cmn
LongFloatMap

Returns a new MutableLongFloatMap.

Cmn
LongFloatMap
longFloatMapOf(key1: Long, value1: Float)

Returns a new LongFloatMap with key1 associated with value1.

Cmn
LongFloatMap
longFloatMapOf(key1: Long, value1: Float, key2: Long, value2: Float)

Returns a new LongFloatMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
LongFloatMap
longFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float
)

Returns a new LongFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
LongFloatMap
longFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float
)

Returns a new LongFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
LongFloatMap
longFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float,
    key5: Long,
    value5: Float
)

Returns a new LongFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
LongIntMap

Returns a new MutableLongIntMap.

Cmn
LongIntMap
longIntMapOf(key1: Long, value1: Int)

Returns a new LongIntMap with key1 associated with value1.

Cmn
LongIntMap
longIntMapOf(key1: Long, value1: Int, key2: Long, value2: Int)

Returns a new LongIntMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
LongIntMap
longIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int
)

Returns a new LongIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
LongIntMap
longIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int
)

Returns a new LongIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
LongIntMap
longIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int,
    key5: Long,
    value5: Int
)

Returns a new LongIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
LongList
Cmn
LongList
longListOf(element1: Long)
Cmn
LongList
longListOf(vararg elements: Long)
Cmn
LongList
longListOf(element1: Long, element2: Long)
Cmn
LongList
longListOf(element1: Long, element2: Long, element3: Long)
Cmn
LongLongMap

Returns a new MutableLongLongMap.

Cmn
LongLongMap
longLongMapOf(key1: Long, value1: Long)

Returns a new LongLongMap with key1 associated with value1.

Cmn
LongLongMap
longLongMapOf(key1: Long, value1: Long, key2: Long, value2: Long)

Returns a new LongLongMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
LongLongMap
longLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long
)

Returns a new LongLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
LongLongMap
longLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long
)

Returns a new LongLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
LongLongMap
longLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long,
    key5: Long,
    value5: Long
)

Returns a new LongLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
LongObjectMap<V>
<V : Any?> longObjectMapOf()

Returns an empty, read-only LongObjectMap.

Cmn
LongObjectMap<V>
<V : Any?> longObjectMapOf(key1: Long, value1: V)

Returns a new LongObjectMap with key1 associated with value1.

Cmn
LongObjectMap<V>
<V : Any?> longObjectMapOf(key1: Long, value1: V, key2: Long, value2: V)

Returns a new LongObjectMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
LongObjectMap<V>
<V : Any?> longObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V
)

Returns a new LongObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
LongObjectMap<V>
<V : Any?> longObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V
)

Returns a new LongObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
LongObjectMap<V>
<V : Any?> longObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V,
    key5: Long,
    value5: V
)

Returns a new LongObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
LongSet

Returns an empty, read-only ScatterSet.

Cmn
LongSet
longSetOf(element1: Long)

Returns a new read-only LongSet with only element1 in it.

Cmn
LongSet
longSetOf(vararg elements: Long)

Returns a new read-only LongSet with only elements in it.

Cmn
LongSet
longSetOf(element1: Long, element2: Long)

Returns a new read-only LongSet with only element1 and element2 in it.

Cmn
LongSet
longSetOf(element1: Long, element2: Long, element3: Long)

Returns a new read-only LongSet with only element1, element2, and element3 in it.

Cmn
inline LruCache<K, V>
<K : Any, V : Any> lruCache(
    maxSize: Int,
    crossinline sizeOf: (key, value) -> Int,
    crossinline create: (key) -> V?,
    crossinline onEntryRemoved: (evicted: Boolean, key, oldValue, newValue?) -> Unit
)

Creates an LruCache with the given parameters.

Cmn
MutableFloatFloatMap

Returns a new MutableFloatFloatMap.

Cmn
MutableFloatFloatMap

Returns a new MutableFloatFloatMap with key1 associated with value1.

Cmn
MutableFloatFloatMap
mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float
)

Returns a new MutableFloatFloatMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableFloatFloatMap
mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float
)

Returns a new MutableFloatFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableFloatFloatMap
mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float
)

Returns a new MutableFloatFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableFloatFloatMap
mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float,
    key5: Float,
    value5: Float
)

Returns a new MutableFloatFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableFloatIntMap

Returns a new MutableFloatIntMap.

Cmn
MutableFloatIntMap
mutableFloatIntMapOf(key1: Float, value1: Int)

Returns a new MutableFloatIntMap with key1 associated with value1.

Cmn
MutableFloatIntMap
mutableFloatIntMapOf(key1: Float, value1: Int, key2: Float, value2: Int)

Returns a new MutableFloatIntMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableFloatIntMap
mutableFloatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int
)

Returns a new MutableFloatIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableFloatIntMap
mutableFloatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int
)

Returns a new MutableFloatIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableFloatIntMap
mutableFloatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int,
    key5: Float,
    value5: Int
)

Returns a new MutableFloatIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
inline MutableFloatList
Cmn
MutableFloatList
Cmn
inline MutableFloatList
mutableFloatListOf(vararg elements: Float)
Cmn
MutableFloatList
mutableFloatListOf(element1: Float, element2: Float)
Cmn
MutableFloatList
mutableFloatListOf(element1: Float, element2: Float, element3: Float)
Cmn
MutableFloatLongMap

Returns a new MutableFloatLongMap.

Cmn
MutableFloatLongMap
mutableFloatLongMapOf(key1: Float, value1: Long)

Returns a new MutableFloatLongMap with key1 associated with value1.

Cmn
MutableFloatLongMap
mutableFloatLongMapOf(key1: Float, value1: Long, key2: Float, value2: Long)

Returns a new MutableFloatLongMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableFloatLongMap
mutableFloatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long
)

Returns a new MutableFloatLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableFloatLongMap
mutableFloatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long
)

Returns a new MutableFloatLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableFloatLongMap
mutableFloatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long,
    key5: Float,
    value5: Long
)

Returns a new MutableFloatLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap.

Cmn
MutableFloatObjectMap<V>
<V : Any?> mutableFloatObjectMapOf(key1: Float, value1: V)

Returns a new MutableFloatObjectMap with key1 associated with value1.

Cmn
MutableFloatObjectMap<V>
<V : Any?> mutableFloatObjectMapOf(key1: Float, value1: V, key2: Float, value2: V)

Returns a new MutableFloatObjectMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableFloatObjectMap<V>
<V : Any?> mutableFloatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V
)

Returns a new MutableFloatObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableFloatObjectMap<V>
<V : Any?> mutableFloatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V
)

Returns a new MutableFloatObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableFloatObjectMap<V>
<V : Any?> mutableFloatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V,
    key5: Float,
    value5: V
)

Returns a new MutableFloatObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableFloatSet

Returns a new MutableFloatSet.

Cmn
MutableFloatSet

Returns a new MutableFloatSet with only element1 in it.

Cmn
MutableFloatSet
mutableFloatSetOf(vararg elements: Float)

Returns a new MutableFloatSet with the specified elements.

Cmn
MutableFloatSet
mutableFloatSetOf(element1: Float, element2: Float)

Returns a new MutableFloatSet with only element1 and element2 in it.

Cmn
MutableFloatSet
mutableFloatSetOf(element1: Float, element2: Float, element3: Float)

Returns a new MutableFloatSet with only element1, element2, and element3 in it.

Cmn
MutableIntFloatMap

Returns a new MutableIntFloatMap.

Cmn
MutableIntFloatMap
mutableIntFloatMapOf(key1: Int, value1: Float)

Returns a new MutableIntFloatMap with key1 associated with value1.

Cmn
MutableIntFloatMap
mutableIntFloatMapOf(key1: Int, value1: Float, key2: Int, value2: Float)

Returns a new MutableIntFloatMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableIntFloatMap
mutableIntFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float
)

Returns a new MutableIntFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableIntFloatMap
mutableIntFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float
)

Returns a new MutableIntFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableIntFloatMap
mutableIntFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float,
    key5: Int,
    value5: Float
)

Returns a new MutableIntFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableIntIntMap

Returns a new MutableIntIntMap.

Cmn
MutableIntIntMap
mutableIntIntMapOf(key1: Int, value1: Int)

Returns a new MutableIntIntMap with key1 associated with value1.

Cmn
MutableIntIntMap
mutableIntIntMapOf(key1: Int, value1: Int, key2: Int, value2: Int)

Returns a new MutableIntIntMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableIntIntMap
mutableIntIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int
)

Returns a new MutableIntIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableIntIntMap
mutableIntIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int
)

Returns a new MutableIntIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableIntIntMap
mutableIntIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int,
    key5: Int,
    value5: Int
)

Returns a new MutableIntIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
inline MutableIntList
Cmn
MutableIntList
mutableIntListOf(element1: Int)
Cmn
inline MutableIntList
mutableIntListOf(vararg elements: Int)
Cmn
MutableIntList
mutableIntListOf(element1: Int, element2: Int)
Cmn
MutableIntList
mutableIntListOf(element1: Int, element2: Int, element3: Int)
Cmn
MutableIntLongMap

Returns a new MutableIntLongMap.

Cmn
MutableIntLongMap
mutableIntLongMapOf(key1: Int, value1: Long)

Returns a new MutableIntLongMap with key1 associated with value1.

Cmn
MutableIntLongMap
mutableIntLongMapOf(key1: Int, value1: Long, key2: Int, value2: Long)

Returns a new MutableIntLongMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableIntLongMap
mutableIntLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long
)

Returns a new MutableIntLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableIntLongMap
mutableIntLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long
)

Returns a new MutableIntLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableIntLongMap
mutableIntLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long,
    key5: Int,
    value5: Long
)

Returns a new MutableIntLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableIntObjectMap<V>

Returns a new MutableIntObjectMap.

Cmn
MutableIntObjectMap<V>
<V : Any?> mutableIntObjectMapOf(key1: Int, value1: V)

Returns a new MutableIntObjectMap with key1 associated with value1.

Cmn
MutableIntObjectMap<V>
<V : Any?> mutableIntObjectMapOf(key1: Int, value1: V, key2: Int, value2: V)

Returns a new MutableIntObjectMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableIntObjectMap<V>
<V : Any?> mutableIntObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V
)

Returns a new MutableIntObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableIntObjectMap<V>
<V : Any?> mutableIntObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V
)

Returns a new MutableIntObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableIntObjectMap<V>
<V : Any?> mutableIntObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V,
    key5: Int,
    value5: V
)

Returns a new MutableIntObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableIntSet

Returns a new MutableIntSet.

Cmn
MutableIntSet
mutableIntSetOf(element1: Int)

Returns a new MutableIntSet with only element1 in it.

Cmn
MutableIntSet
mutableIntSetOf(vararg elements: Int)

Returns a new MutableIntSet with the specified elements.

Cmn
MutableIntSet
mutableIntSetOf(element1: Int, element2: Int)

Returns a new MutableIntSet with only element1 and element2 in it.

Cmn
MutableIntSet
mutableIntSetOf(element1: Int, element2: Int, element3: Int)

Returns a new MutableIntSet with only element1, element2, and element3 in it.

Cmn
MutableLongFloatMap

Returns a new MutableLongFloatMap.

Cmn
MutableLongFloatMap
mutableLongFloatMapOf(key1: Long, value1: Float)

Returns a new MutableLongFloatMap with key1 associated with value1.

Cmn
MutableLongFloatMap
mutableLongFloatMapOf(key1: Long, value1: Float, key2: Long, value2: Float)

Returns a new MutableLongFloatMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableLongFloatMap
mutableLongFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float
)

Returns a new MutableLongFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableLongFloatMap
mutableLongFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float
)

Returns a new MutableLongFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableLongFloatMap
mutableLongFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float,
    key5: Long,
    value5: Float
)

Returns a new MutableLongFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableLongIntMap

Returns a new MutableLongIntMap.

Cmn
MutableLongIntMap
mutableLongIntMapOf(key1: Long, value1: Int)

Returns a new MutableLongIntMap with key1 associated with value1.

Cmn
MutableLongIntMap
mutableLongIntMapOf(key1: Long, value1: Int, key2: Long, value2: Int)

Returns a new MutableLongIntMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableLongIntMap
mutableLongIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int
)

Returns a new MutableLongIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableLongIntMap
mutableLongIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int
)

Returns a new MutableLongIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableLongIntMap
mutableLongIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int,
    key5: Long,
    value5: Int
)

Returns a new MutableLongIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
inline MutableLongList
Cmn
MutableLongList
Cmn
inline MutableLongList
mutableLongListOf(vararg elements: Long)
Cmn
MutableLongList
mutableLongListOf(element1: Long, element2: Long)
Cmn
MutableLongList
mutableLongListOf(element1: Long, element2: Long, element3: Long)
Cmn
MutableLongLongMap

Returns a new MutableLongLongMap.

Cmn
MutableLongLongMap
mutableLongLongMapOf(key1: Long, value1: Long)

Returns a new MutableLongLongMap with key1 associated with value1.

Cmn
MutableLongLongMap
mutableLongLongMapOf(key1: Long, value1: Long, key2: Long, value2: Long)

Returns a new MutableLongLongMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableLongLongMap
mutableLongLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long
)

Returns a new MutableLongLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableLongLongMap
mutableLongLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long
)

Returns a new MutableLongLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableLongLongMap
mutableLongLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long,
    key5: Long,
    value5: Long
)

Returns a new MutableLongLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableLongObjectMap<V>

Returns a new MutableLongObjectMap.

Cmn
MutableLongObjectMap<V>
<V : Any?> mutableLongObjectMapOf(key1: Long, value1: V)

Returns a new MutableLongObjectMap with key1 associated with value1.

Cmn
MutableLongObjectMap<V>
<V : Any?> mutableLongObjectMapOf(key1: Long, value1: V, key2: Long, value2: V)

Returns a new MutableLongObjectMap with key1, and key2 associated with value1, and value2, respectively.

Cmn
MutableLongObjectMap<V>
<V : Any?> mutableLongObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V
)

Returns a new MutableLongObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableLongObjectMap<V>
<V : Any?> mutableLongObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V
)

Returns a new MutableLongObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableLongObjectMap<V>
<V : Any?> mutableLongObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V,
    key5: Long,
    value5: V
)

Returns a new MutableLongObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableLongSet

Returns a new MutableLongSet.

Cmn
MutableLongSet

Returns a new MutableLongSet with only element1 in it.

Cmn
MutableLongSet
mutableLongSetOf(vararg elements: Long)

Returns a new MutableLongSet with the specified elements.

Cmn
MutableLongSet
mutableLongSetOf(element1: Long, element2: Long)

Returns a new MutableLongSet with only element1 and element2 in it.

Cmn
MutableLongSet
mutableLongSetOf(element1: Long, element2: Long, element3: Long)

Returns a new MutableLongSet with only element1, element2, and element3 in it.

Cmn
MutableObjectFloatMap<K>

Returns a new empty MutableObjectFloatMap.

Cmn
MutableObjectFloatMap<K>
<K : Any?> mutableObjectFloatMapOf(key1: K, value1: Float)

Returns a new MutableObjectFloatMap with only key1 associated with value1.

Cmn
MutableObjectFloatMap<K>
<K : Any?> mutableObjectFloatMapOf(key1: K, value1: Float, key2: K, value2: Float)

Returns a new MutableObjectFloatMap with only key1 and key2 associated with value1 and value2, respectively.

Cmn
MutableObjectFloatMap<K>
<K : Any?> mutableObjectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float
)

Returns a new MutableObjectFloatMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableObjectFloatMap<K>
<K : Any?> mutableObjectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float
)

Returns a new MutableObjectFloatMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableObjectFloatMap<K>
<K : Any?> mutableObjectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float,
    key5: K,
    value5: Float
)

Returns a new MutableObjectFloatMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableObjectIntMap<K>

Returns a new empty MutableObjectIntMap.

Cmn
MutableObjectIntMap<K>
<K : Any?> mutableObjectIntMapOf(key1: K, value1: Int)

Returns a new MutableObjectIntMap with only key1 associated with value1.

Cmn
MutableObjectIntMap<K>
<K : Any?> mutableObjectIntMapOf(key1: K, value1: Int, key2: K, value2: Int)

Returns a new MutableObjectIntMap with only key1 and key2 associated with value1 and value2, respectively.

Cmn
MutableObjectIntMap<K>
<K : Any?> mutableObjectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int
)

Returns a new MutableObjectIntMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableObjectIntMap<K>
<K : Any?> mutableObjectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int
)

Returns a new MutableObjectIntMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableObjectIntMap<K>
<K : Any?> mutableObjectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int,
    key5: K,
    value5: Int
)

Returns a new MutableObjectIntMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
inline MutableObjectList<E>
Cmn
MutableObjectList<E>
<E : Any?> mutableObjectListOf(element1: E)
Cmn
inline MutableObjectList<E>
<E : Any?> mutableObjectListOf(vararg elements: E)
Cmn
MutableObjectList<E>
<E : Any?> mutableObjectListOf(element1: E, element2: E)
Cmn
MutableObjectList<E>
<E : Any?> mutableObjectListOf(element1: E, element2: E, element3: E)
Cmn
MutableObjectLongMap<K>

Returns a new empty MutableObjectLongMap.

Cmn
MutableObjectLongMap<K>
<K : Any?> mutableObjectLongMapOf(key1: K, value1: Long)

Returns a new MutableObjectLongMap with only key1 associated with value1.

Cmn
MutableObjectLongMap<K>
<K : Any?> mutableObjectLongMapOf(key1: K, value1: Long, key2: K, value2: Long)

Returns a new MutableObjectLongMap with only key1 and key2 associated with value1 and value2, respectively.

Cmn
MutableObjectLongMap<K>
<K : Any?> mutableObjectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long
)

Returns a new MutableObjectLongMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
MutableObjectLongMap<K>
<K : Any?> mutableObjectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long
)

Returns a new MutableObjectLongMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
MutableObjectLongMap<K>
<K : Any?> mutableObjectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long,
    key5: K,
    value5: Long
)

Returns a new MutableObjectLongMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
MutableScatterMap<K, V>
<K : Any?, V : Any?> mutableScatterMapOf()

Returns a new MutableScatterMap.

Cmn
MutableScatterMap<K, V>
<K : Any?, V : Any?> mutableScatterMapOf(vararg pairs: Pair<K, V>)

Returns a new MutableScatterMap with the specified contents, given as a list of pairs where the first component is the key and the second is the value.

Cmn
MutableScatterSet<E>

Returns a new MutableScatterSet.

Cmn
MutableScatterSet<E>
<E : Any?> mutableScatterSetOf(element1: E)

Returns a new MutableScatterSet with only element1 in it.

Cmn
MutableScatterSet<E>
<E : Any?> mutableScatterSetOf(vararg elements: E)

Returns a new MutableScatterSet with the specified contents.

Cmn
MutableScatterSet<E>
<E : Any?> mutableScatterSetOf(element1: E, element2: E)

Returns a new MutableScatterSet with only element1 and element2 in it.

Cmn
MutableScatterSet<E>
<E : Any?> mutableScatterSetOf(element1: E, element2: E, element3: E)

Returns a new MutableScatterSet with only element1, element2, and element3 in it.

Cmn
ObjectFloatMap<K>
<K : Any?> objectFloatMap()

Returns an empty, read-only ObjectFloatMap.

Cmn
ObjectFloatMap<K>
<K : Any?> objectFloatMapOf(key1: K, value1: Float)

Returns a new ObjectFloatMap with only key1 associated with value1.

Cmn
ObjectFloatMap<K>
<K : Any?> objectFloatMapOf(key1: K, value1: Float, key2: K, value2: Float)

Returns a new ObjectFloatMap with only key1 and key2 associated with value1 and value2, respectively.

Cmn
ObjectFloatMap<K>
<K : Any?> objectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float
)

Returns a new ObjectFloatMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
ObjectFloatMap<K>
<K : Any?> objectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float
)

Returns a new ObjectFloatMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
ObjectFloatMap<K>
<K : Any?> objectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float,
    key5: K,
    value5: Float
)

Returns a new ObjectFloatMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
ObjectIntMap<K>
<K : Any?> objectIntMap()

Returns an empty, read-only ObjectIntMap.

Cmn
ObjectIntMap<K>
<K : Any?> objectIntMapOf(key1: K, value1: Int)

Returns a new ObjectIntMap with only key1 associated with value1.

Cmn
ObjectIntMap<K>
<K : Any?> objectIntMapOf(key1: K, value1: Int, key2: K, value2: Int)

Returns a new ObjectIntMap with only key1 and key2 associated with value1 and value2, respectively.

Cmn
ObjectIntMap<K>
<K : Any?> objectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int
)

Returns a new ObjectIntMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
ObjectIntMap<K>
<K : Any?> objectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int
)

Returns a new ObjectIntMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
ObjectIntMap<K>
<K : Any?> objectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int,
    key5: K,
    value5: Int
)

Returns a new ObjectIntMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
ObjectList<E>
<E : Any?> objectListOf()
Cmn
ObjectList<E>
<E : Any?> objectListOf(element1: E)
Cmn
ObjectList<E>
<E : Any?> objectListOf(vararg elements: E)
Cmn
ObjectList<E>
<E : Any?> objectListOf(element1: E, element2: E)
Cmn
ObjectList<E>
<E : Any?> objectListOf(element1: E, element2: E, element3: E)
Cmn
ObjectLongMap<K>
<K : Any?> objectLongMap()

Returns an empty, read-only ObjectLongMap.

Cmn
ObjectLongMap<K>
<K : Any?> objectLongMapOf(key1: K, value1: Long)

Returns a new ObjectLongMap with only key1 associated with value1.

Cmn
ObjectLongMap<K>
<K : Any?> objectLongMapOf(key1: K, value1: Long, key2: K, value2: Long)

Returns a new ObjectLongMap with only key1 and key2 associated with value1 and value2, respectively.

Cmn
ObjectLongMap<K>
<K : Any?> objectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long
)

Returns a new ObjectLongMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

Cmn
ObjectLongMap<K>
<K : Any?> objectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long
)

Returns a new ObjectLongMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

Cmn
ObjectLongMap<K>
<K : Any?> objectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long,
    key5: K,
    value5: Long
)

Returns a new ObjectLongMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

Cmn
ScatterSet<E>
<E : Any?> scatterSetOf()

Returns an empty, read-only ScatterSet.

Cmn
ScatterSet<E>
<E : Any?> scatterSetOf(element1: E)

Returns a new read-only ScatterSet with only element1 in it.

Cmn
ScatterSet<E>
<E : Any?> scatterSetOf(vararg elements: E)

Returns a new read-only ScatterSet with only elements in it.

Cmn
ScatterSet<E>
<E : Any?> scatterSetOf(element1: E, element2: E)

Returns a new read-only ScatterSet with only element1 and element2 in it.

Cmn
ScatterSet<E>
<E : Any?> scatterSetOf(element1: E, element2: E, element3: E)

Returns a new read-only ScatterSet with only element1, element2, and element3 in it.

Cmn

Extension functions summary

inline operator Boolean
<T : Any?> SparseArrayCompat<T>.contains(key: Int)

Returns true if the collection contains key.

Cmn
inline operator Boolean
<T : Any?> LongSparseArray<T>.contains(key: Long)

Returns true if the collection contains key.

Cmn
inline Unit
<T : Any?> LongSparseArray<T>.forEach(action: (key: Long, value) -> Unit)

Performs the given action for each key/value entry.

Cmn
inline Unit
<T : Any?> SparseArrayCompat<T>.forEach(action: (key: Int, value) -> Unit)

Performs the given action for each key/value entry.

Cmn
inline T
<T : Any?> SparseArrayCompat<T>.getOrDefault(key: Int, defaultValue: T)

Return the value corresponding to key, or defaultValue when not present.

Cmn
inline T
<T : Any?> LongSparseArray<T>.getOrDefault(key: Long, defaultValue: T)

Return the value corresponding to key, or defaultValue when not present.

Cmn
inline T
<T : Any?> SparseArrayCompat<T>.getOrElse(key: Int, defaultValue: () -> T)

Return the value corresponding to key, or from defaultValue when not present.

Cmn
inline T
<T : Any?> LongSparseArray<T>.getOrElse(key: Long, defaultValue: () -> T)

Return the value corresponding to key, or from defaultValue when not present.

Cmn
inline Boolean

Return true when the collection contains elements.

Cmn
inline Boolean

Return true when the collection contains elements.

Cmn
LongIterator

Return an iterator over the collection's keys.

Cmn
IntIterator

Return an iterator over the collection's keys.

Cmn
operator LongSparseArray<T>
<T : Any?> LongSparseArray<T>.plus(other: LongSparseArray<T>)

Creates a new collection by adding or replacing entries from other.

Cmn
operator SparseArrayCompat<T>

Creates a new collection by adding or replacing entries from other.

Cmn
inline operator Unit
<T : Any?> SparseArrayCompat<T>.set(key: Int, value: T)

Allows the use of the index operator for storing values in the collection.

Cmn
inline operator Unit
<T : Any?> LongSparseArray<T>.set(key: Long, value: T)

Allows the use of the index operator for storing values in the collection.

Cmn
Iterator<T>

Return an iterator over the collection's values.

Cmn
Iterator<T>

Return an iterator over the collection's values.

Cmn

Extension properties summary

Int

Returns the number of key/value pairs in the collection.

Cmn
Int

Returns the number of key/value pairs in the collection.

Cmn

Top-level functions

arrayMapOf

inline fun <K : Any?, V : Any?> arrayMapOf(): ArrayMap<K, V>

Returns an empty new ArrayMap. NOTE: Consider using mutableScatterMapOf instead. MutableScatterMap also avoids creating a new object per entry but offers better performance characteristics.

arrayMapOf

fun <K : Any?, V : Any?> arrayMapOf(vararg pairs: Pair<K, V>): ArrayMap<K, V>

Returns a new ArrayMap with the specified contents, given as a list of pairs where the first component is the key and the second component is the value.

If multiple pairs have the same key, the resulting map will contain the value from the last of those pairs.

NOTE: Consider using mutableScatterMapOf instead. MutableScatterMap also avoids creating a new object per entry but offers better performance characteristics.

arraySetOf

inline fun <T : Any?> arraySetOf(): ArraySet<T>

Returns an empty new ArraySet.

arraySetOf

fun <T : Any?> arraySetOf(vararg values: T): ArraySet<T>

Returns a new ArraySet with the specified contents.

emptyFloatFloatMap

fun emptyFloatFloatMap(): FloatFloatMap

Returns an empty, read-only FloatFloatMap.

emptyFloatIntMap

fun emptyFloatIntMap(): FloatIntMap

Returns an empty, read-only FloatIntMap.

emptyFloatList

fun emptyFloatList(): FloatList
Returns
FloatList

a read-only FloatList with nothing in it.

emptyFloatLongMap

fun emptyFloatLongMap(): FloatLongMap

Returns an empty, read-only FloatLongMap.

emptyFloatObjectMap

fun <V : Any?> emptyFloatObjectMap(): FloatObjectMap<V>

Returns an empty, read-only FloatObjectMap.

emptyFloatSet

fun emptyFloatSet(): FloatSet

Returns an empty, read-only FloatSet.

emptyIntFloatMap

fun emptyIntFloatMap(): IntFloatMap

Returns an empty, read-only IntFloatMap.

emptyIntIntMap

fun emptyIntIntMap(): IntIntMap

Returns an empty, read-only IntIntMap.

emptyIntList

fun emptyIntList(): IntList
Returns
IntList

a read-only IntList with nothing in it.

emptyIntLongMap

fun emptyIntLongMap(): IntLongMap

Returns an empty, read-only IntLongMap.

emptyIntObjectMap

fun <V : Any?> emptyIntObjectMap(): IntObjectMap<V>

Returns an empty, read-only IntObjectMap.

emptyIntSet

fun emptyIntSet(): IntSet

Returns an empty, read-only IntSet.

emptyLongFloatMap

fun emptyLongFloatMap(): LongFloatMap

Returns an empty, read-only LongFloatMap.

emptyLongIntMap

fun emptyLongIntMap(): LongIntMap

Returns an empty, read-only LongIntMap.

emptyLongList

fun emptyLongList(): LongList
Returns
LongList

a read-only LongList with nothing in it.

emptyLongLongMap

fun emptyLongLongMap(): LongLongMap

Returns an empty, read-only LongLongMap.

emptyLongObjectMap

fun <V : Any?> emptyLongObjectMap(): LongObjectMap<V>

Returns an empty, read-only LongObjectMap.

emptyLongSet

fun emptyLongSet(): LongSet

Returns an empty, read-only LongSet.

emptyObjectFloatMap

fun <K : Any?> emptyObjectFloatMap(): ObjectFloatMap<K>

Returns an empty, read-only ObjectFloatMap.

emptyObjectIntMap

fun <K : Any?> emptyObjectIntMap(): ObjectIntMap<K>

Returns an empty, read-only ObjectIntMap.

emptyObjectList

fun <E : Any?> emptyObjectList(): ObjectList<E>
Returns
ObjectList<E>

a read-only ObjectList with nothing in it.

emptyObjectLongMap

fun <K : Any?> emptyObjectLongMap(): ObjectLongMap<K>

Returns an empty, read-only ObjectLongMap.

emptyScatterMap

fun <K : Any?, V : Any?> emptyScatterMap(): ScatterMap<K, V>

Returns an empty, read-only ScatterMap.

emptyScatterSet

fun <E : Any?> emptyScatterSet(): ScatterSet<E>

Returns an empty, read-only ScatterSet.

floatFloatMapOf

fun floatFloatMapOf(): FloatFloatMap

Returns a new MutableFloatFloatMap.

floatFloatMapOf

fun floatFloatMapOf(key1: Float, value1: Float): FloatFloatMap

Returns a new FloatFloatMap with key1 associated with value1.

floatFloatMapOf

fun floatFloatMapOf(key1: Float, value1: Float, key2: Float, value2: Float): FloatFloatMap

Returns a new FloatFloatMap with key1, and key2 associated with value1, and value2, respectively.

floatFloatMapOf

fun floatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float
): FloatFloatMap

Returns a new FloatFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

floatFloatMapOf

fun floatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float
): FloatFloatMap

Returns a new FloatFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

floatFloatMapOf

fun floatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float,
    key5: Float,
    value5: Float
): FloatFloatMap

Returns a new FloatFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

floatIntMapOf

fun floatIntMapOf(): FloatIntMap

Returns a new MutableFloatIntMap.

floatIntMapOf

fun floatIntMapOf(key1: Float, value1: Int): FloatIntMap

Returns a new FloatIntMap with key1 associated with value1.

floatIntMapOf

fun floatIntMapOf(key1: Float, value1: Int, key2: Float, value2: Int): FloatIntMap

Returns a new FloatIntMap with key1, and key2 associated with value1, and value2, respectively.

floatIntMapOf

fun floatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int
): FloatIntMap

Returns a new FloatIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

floatIntMapOf

fun floatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int
): FloatIntMap

Returns a new FloatIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

floatIntMapOf

fun floatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int,
    key5: Float,
    value5: Int
): FloatIntMap

Returns a new FloatIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

floatListOf

fun floatListOf(): FloatList
Returns
FloatList

a read-only FloatList with nothing in it.

floatListOf

fun floatListOf(element1: Float): FloatList
Returns
FloatList

a new read-only FloatList with element1 as the only item in the list.

floatListOf

fun floatListOf(vararg elements: Float): FloatList
Returns
FloatList

a new read-only FloatList with elements in order.

floatListOf

fun floatListOf(element1: Float, element2: Float): FloatList
Returns
FloatList

a new read-only FloatList with 2 elements, element1 and element2, in order.

floatListOf

fun floatListOf(element1: Float, element2: Float, element3: Float): FloatList
Returns
FloatList

a new read-only FloatList with 3 elements, element1, element2, and element3, in order.

floatLongMapOf

fun floatLongMapOf(): FloatLongMap

Returns a new MutableFloatLongMap.

floatLongMapOf

fun floatLongMapOf(key1: Float, value1: Long): FloatLongMap

Returns a new FloatLongMap with key1 associated with value1.

floatLongMapOf

fun floatLongMapOf(key1: Float, value1: Long, key2: Float, value2: Long): FloatLongMap

Returns a new FloatLongMap with key1, and key2 associated with value1, and value2, respectively.

floatLongMapOf

fun floatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long
): FloatLongMap

Returns a new FloatLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

floatLongMapOf

fun floatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long
): FloatLongMap

Returns a new FloatLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

floatLongMapOf

fun floatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long,
    key5: Float,
    value5: Long
): FloatLongMap

Returns a new FloatLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

floatObjectMapOf

fun <V : Any?> floatObjectMapOf(): FloatObjectMap<V>

Returns an empty, read-only FloatObjectMap.

floatObjectMapOf

fun <V : Any?> floatObjectMapOf(key1: Float, value1: V): FloatObjectMap<V>

Returns a new FloatObjectMap with key1 associated with value1.

floatObjectMapOf

fun <V : Any?> floatObjectMapOf(key1: Float, value1: V, key2: Float, value2: V): FloatObjectMap<V>

Returns a new FloatObjectMap with key1, and key2 associated with value1, and value2, respectively.

floatObjectMapOf

fun <V : Any?> floatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V
): FloatObjectMap<V>

Returns a new FloatObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

floatObjectMapOf

fun <V : Any?> floatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V
): FloatObjectMap<V>

Returns a new FloatObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

floatObjectMapOf

fun <V : Any?> floatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V,
    key5: Float,
    value5: V
): FloatObjectMap<V>

Returns a new FloatObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

floatSetOf

fun floatSetOf(): FloatSet

Returns an empty, read-only ScatterSet.

floatSetOf

fun floatSetOf(element1: Float): FloatSet

Returns a new read-only FloatSet with only element1 in it.

floatSetOf

fun floatSetOf(vararg elements: Float): FloatSet

Returns a new read-only FloatSet with only elements in it.

floatSetOf

fun floatSetOf(element1: Float, element2: Float): FloatSet

Returns a new read-only FloatSet with only element1 and element2 in it.

floatSetOf

fun floatSetOf(element1: Float, element2: Float, element3: Float): FloatSet

Returns a new read-only FloatSet with only element1, element2, and element3 in it.

intFloatMapOf

fun intFloatMapOf(): IntFloatMap

Returns a new MutableIntFloatMap.

intFloatMapOf

fun intFloatMapOf(key1: Int, value1: Float): IntFloatMap

Returns a new IntFloatMap with key1 associated with value1.

intFloatMapOf

fun intFloatMapOf(key1: Int, value1: Float, key2: Int, value2: Float): IntFloatMap

Returns a new IntFloatMap with key1, and key2 associated with value1, and value2, respectively.

intFloatMapOf

fun intFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float
): IntFloatMap

Returns a new IntFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

intFloatMapOf

fun intFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float
): IntFloatMap

Returns a new IntFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

intFloatMapOf

fun intFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float,
    key5: Int,
    value5: Float
): IntFloatMap

Returns a new IntFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

intIntMapOf

fun intIntMapOf(): IntIntMap

Returns a new MutableIntIntMap.

intIntMapOf

fun intIntMapOf(key1: Int, value1: Int): IntIntMap

Returns a new IntIntMap with key1 associated with value1.

intIntMapOf

fun intIntMapOf(key1: Int, value1: Int, key2: Int, value2: Int): IntIntMap

Returns a new IntIntMap with key1, and key2 associated with value1, and value2, respectively.

intIntMapOf

fun intIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int
): IntIntMap

Returns a new IntIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

intIntMapOf

fun intIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int
): IntIntMap

Returns a new IntIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

intIntMapOf

fun intIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int,
    key5: Int,
    value5: Int
): IntIntMap

Returns a new IntIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

intListOf

fun intListOf(): IntList
Returns
IntList

a read-only IntList with nothing in it.

intListOf

fun intListOf(element1: Int): IntList
Returns
IntList

a new read-only IntList with element1 as the only item in the list.

intListOf

fun intListOf(vararg elements: Int): IntList
Returns
IntList

a new read-only IntList with elements in order.

intListOf

fun intListOf(element1: Int, element2: Int): IntList
Returns
IntList

a new read-only IntList with 2 elements, element1 and element2, in order.

intListOf

fun intListOf(element1: Int, element2: Int, element3: Int): IntList
Returns
IntList

a new read-only IntList with 3 elements, element1, element2, and element3, in order.

intLongMapOf

fun intLongMapOf(): IntLongMap

Returns a new MutableIntLongMap.

intLongMapOf

fun intLongMapOf(key1: Int, value1: Long): IntLongMap

Returns a new IntLongMap with key1 associated with value1.

intLongMapOf

fun intLongMapOf(key1: Int, value1: Long, key2: Int, value2: Long): IntLongMap

Returns a new IntLongMap with key1, and key2 associated with value1, and value2, respectively.

intLongMapOf

fun intLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long
): IntLongMap

Returns a new IntLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

intLongMapOf

fun intLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long
): IntLongMap

Returns a new IntLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

intLongMapOf

fun intLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long,
    key5: Int,
    value5: Long
): IntLongMap

Returns a new IntLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

intObjectMapOf

fun <V : Any?> intObjectMapOf(): IntObjectMap<V>

Returns an empty, read-only IntObjectMap.

intObjectMapOf

fun <V : Any?> intObjectMapOf(key1: Int, value1: V): IntObjectMap<V>

Returns a new IntObjectMap with key1 associated with value1.

intObjectMapOf

fun <V : Any?> intObjectMapOf(key1: Int, value1: V, key2: Int, value2: V): IntObjectMap<V>

Returns a new IntObjectMap with key1, and key2 associated with value1, and value2, respectively.

intObjectMapOf

fun <V : Any?> intObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V
): IntObjectMap<V>

Returns a new IntObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

intObjectMapOf

fun <V : Any?> intObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V
): IntObjectMap<V>

Returns a new IntObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

intObjectMapOf

fun <V : Any?> intObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V,
    key5: Int,
    value5: V
): IntObjectMap<V>

Returns a new IntObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

intSetOf

fun intSetOf(): IntSet

Returns an empty, read-only ScatterSet.

intSetOf

fun intSetOf(element1: Int): IntSet

Returns a new read-only IntSet with only element1 in it.

intSetOf

fun intSetOf(vararg elements: Int): IntSet

Returns a new read-only IntSet with only elements in it.

intSetOf

fun intSetOf(element1: Int, element2: Int): IntSet

Returns a new read-only IntSet with only element1 and element2 in it.

intSetOf

fun intSetOf(element1: Int, element2: Int, element3: Int): IntSet

Returns a new read-only IntSet with only element1, element2, and element3 in it.

longFloatMapOf

fun longFloatMapOf(): LongFloatMap

Returns a new MutableLongFloatMap.

longFloatMapOf

fun longFloatMapOf(key1: Long, value1: Float): LongFloatMap

Returns a new LongFloatMap with key1 associated with value1.

longFloatMapOf

fun longFloatMapOf(key1: Long, value1: Float, key2: Long, value2: Float): LongFloatMap

Returns a new LongFloatMap with key1, and key2 associated with value1, and value2, respectively.

longFloatMapOf

fun longFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float
): LongFloatMap

Returns a new LongFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

longFloatMapOf

fun longFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float
): LongFloatMap

Returns a new LongFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

longFloatMapOf

fun longFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float,
    key5: Long,
    value5: Float
): LongFloatMap

Returns a new LongFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

longIntMapOf

fun longIntMapOf(): LongIntMap

Returns a new MutableLongIntMap.

longIntMapOf

fun longIntMapOf(key1: Long, value1: Int): LongIntMap

Returns a new LongIntMap with key1 associated with value1.

longIntMapOf

fun longIntMapOf(key1: Long, value1: Int, key2: Long, value2: Int): LongIntMap

Returns a new LongIntMap with key1, and key2 associated with value1, and value2, respectively.

longIntMapOf

fun longIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int
): LongIntMap

Returns a new LongIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

longIntMapOf

fun longIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int
): LongIntMap

Returns a new LongIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

longIntMapOf

fun longIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int,
    key5: Long,
    value5: Int
): LongIntMap

Returns a new LongIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

longListOf

fun longListOf(): LongList
Returns
LongList

a read-only LongList with nothing in it.

longListOf

fun longListOf(element1: Long): LongList
Returns
LongList

a new read-only LongList with element1 as the only item in the list.

longListOf

fun longListOf(vararg elements: Long): LongList
Returns
LongList

a new read-only LongList with elements in order.

longListOf

fun longListOf(element1: Long, element2: Long): LongList
Returns
LongList

a new read-only LongList with 2 elements, element1 and element2, in order.

longListOf

fun longListOf(element1: Long, element2: Long, element3: Long): LongList
Returns
LongList

a new read-only LongList with 3 elements, element1, element2, and element3, in order.

longLongMapOf

fun longLongMapOf(): LongLongMap

Returns a new MutableLongLongMap.

longLongMapOf

fun longLongMapOf(key1: Long, value1: Long): LongLongMap

Returns a new LongLongMap with key1 associated with value1.

longLongMapOf

fun longLongMapOf(key1: Long, value1: Long, key2: Long, value2: Long): LongLongMap

Returns a new LongLongMap with key1, and key2 associated with value1, and value2, respectively.

longLongMapOf

fun longLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long
): LongLongMap

Returns a new LongLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

longLongMapOf

fun longLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long
): LongLongMap

Returns a new LongLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

longLongMapOf

fun longLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long,
    key5: Long,
    value5: Long
): LongLongMap

Returns a new LongLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

longObjectMapOf

fun <V : Any?> longObjectMapOf(): LongObjectMap<V>

Returns an empty, read-only LongObjectMap.

longObjectMapOf

fun <V : Any?> longObjectMapOf(key1: Long, value1: V): LongObjectMap<V>

Returns a new LongObjectMap with key1 associated with value1.

longObjectMapOf

fun <V : Any?> longObjectMapOf(key1: Long, value1: V, key2: Long, value2: V): LongObjectMap<V>

Returns a new LongObjectMap with key1, and key2 associated with value1, and value2, respectively.

longObjectMapOf

fun <V : Any?> longObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V
): LongObjectMap<V>

Returns a new LongObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

longObjectMapOf

fun <V : Any?> longObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V
): LongObjectMap<V>

Returns a new LongObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

longObjectMapOf

fun <V : Any?> longObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V,
    key5: Long,
    value5: V
): LongObjectMap<V>

Returns a new LongObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

longSetOf

fun longSetOf(): LongSet

Returns an empty, read-only ScatterSet.

longSetOf

fun longSetOf(element1: Long): LongSet

Returns a new read-only LongSet with only element1 in it.

longSetOf

fun longSetOf(vararg elements: Long): LongSet

Returns a new read-only LongSet with only elements in it.

longSetOf

fun longSetOf(element1: Long, element2: Long): LongSet

Returns a new read-only LongSet with only element1 and element2 in it.

longSetOf

fun longSetOf(element1: Long, element2: Long, element3: Long): LongSet

Returns a new read-only LongSet with only element1, element2, and element3 in it.

lruCache

inline fun <K : Any, V : Any> lruCache(
    maxSize: Int,
    crossinline sizeOf: (key, value) -> Int = { _, _ -> 1 },
    crossinline create: (key) -> V? = { null as V? },
    crossinline onEntryRemoved: (evicted: Boolean, key, oldValue, newValue?) -> Unit = { _, _, _, _ -> }
): LruCache<K, V>

Creates an LruCache with the given parameters.

Parameters
maxSize: Int

for caches that do not specify sizeOf, this is the maximum number of entries in the cache. For all other caches, this is the maximum sum of the sizes of the entries in this cache.

crossinline sizeOf: (key, value) -> Int = { _, _ -> 1 }

function that returns the size of the entry for key and value in user-defined units. The default implementation returns 1.

crossinline create: (key) -> V? = { null as V? }

a create called after a cache miss to compute a value for the corresponding key. Returns the computed value or null if no value can be computed. The default implementation returns null.

crossinline onEntryRemoved: (evicted: Boolean, key, oldValue, newValue?) -> Unit = { _, _, _, _ -> }

a function called for entries that have been evicted or removed.

mutableFloatFloatMapOf

fun mutableFloatFloatMapOf(): MutableFloatFloatMap

Returns a new MutableFloatFloatMap.

mutableFloatFloatMapOf

fun mutableFloatFloatMapOf(key1: Float, value1: Float): MutableFloatFloatMap

Returns a new MutableFloatFloatMap with key1 associated with value1.

mutableFloatFloatMapOf

fun mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float
): MutableFloatFloatMap

Returns a new MutableFloatFloatMap with key1, and key2 associated with value1, and value2, respectively.

mutableFloatFloatMapOf

fun mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float
): MutableFloatFloatMap

Returns a new MutableFloatFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableFloatFloatMapOf

fun mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float
): MutableFloatFloatMap

Returns a new MutableFloatFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableFloatFloatMapOf

fun mutableFloatFloatMapOf(
    key1: Float,
    value1: Float,
    key2: Float,
    value2: Float,
    key3: Float,
    value3: Float,
    key4: Float,
    value4: Float,
    key5: Float,
    value5: Float
): MutableFloatFloatMap

Returns a new MutableFloatFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableFloatIntMapOf

fun mutableFloatIntMapOf(): MutableFloatIntMap

Returns a new MutableFloatIntMap.

mutableFloatIntMapOf

fun mutableFloatIntMapOf(key1: Float, value1: Int): MutableFloatIntMap

Returns a new MutableFloatIntMap with key1 associated with value1.

mutableFloatIntMapOf

fun mutableFloatIntMapOf(key1: Float, value1: Int, key2: Float, value2: Int): MutableFloatIntMap

Returns a new MutableFloatIntMap with key1, and key2 associated with value1, and value2, respectively.

mutableFloatIntMapOf

fun mutableFloatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int
): MutableFloatIntMap

Returns a new MutableFloatIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableFloatIntMapOf

fun mutableFloatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int
): MutableFloatIntMap

Returns a new MutableFloatIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableFloatIntMapOf

fun mutableFloatIntMapOf(
    key1: Float,
    value1: Int,
    key2: Float,
    value2: Int,
    key3: Float,
    value3: Int,
    key4: Float,
    value4: Int,
    key5: Float,
    value5: Int
): MutableFloatIntMap

Returns a new MutableFloatIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableFloatListOf

inline fun mutableFloatListOf(): MutableFloatList
Returns
MutableFloatList

a new empty MutableFloatList with the default capacity.

mutableFloatListOf

fun mutableFloatListOf(element1: Float): MutableFloatList
Returns
MutableFloatList

a new MutableFloatList with element1 as the only item in the list.

mutableFloatListOf

inline fun mutableFloatListOf(vararg elements: Float): MutableFloatList
Returns
MutableFloatList

a new MutableFloatList with the given elements, in order.

mutableFloatListOf

fun mutableFloatListOf(element1: Float, element2: Float): MutableFloatList
Returns
MutableFloatList

a new MutableFloatList with 2 elements, element1 and element2, in order.

mutableFloatListOf

fun mutableFloatListOf(element1: Float, element2: Float, element3: Float): MutableFloatList
Returns
MutableFloatList

a new MutableFloatList with 3 elements, element1, element2, and element3, in order.

mutableFloatLongMapOf

fun mutableFloatLongMapOf(): MutableFloatLongMap

Returns a new MutableFloatLongMap.

mutableFloatLongMapOf

fun mutableFloatLongMapOf(key1: Float, value1: Long): MutableFloatLongMap

Returns a new MutableFloatLongMap with key1 associated with value1.

mutableFloatLongMapOf

fun mutableFloatLongMapOf(key1: Float, value1: Long, key2: Float, value2: Long): MutableFloatLongMap

Returns a new MutableFloatLongMap with key1, and key2 associated with value1, and value2, respectively.

mutableFloatLongMapOf

fun mutableFloatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long
): MutableFloatLongMap

Returns a new MutableFloatLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableFloatLongMapOf

fun mutableFloatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long
): MutableFloatLongMap

Returns a new MutableFloatLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableFloatLongMapOf

fun mutableFloatLongMapOf(
    key1: Float,
    value1: Long,
    key2: Float,
    value2: Long,
    key3: Float,
    value3: Long,
    key4: Float,
    value4: Long,
    key5: Float,
    value5: Long
): MutableFloatLongMap

Returns a new MutableFloatLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableFloatObjectMapOf

fun <V : Any?> mutableFloatObjectMapOf(): MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap.

mutableFloatObjectMapOf

fun <V : Any?> mutableFloatObjectMapOf(key1: Float, value1: V): MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap with key1 associated with value1.

mutableFloatObjectMapOf

fun <V : Any?> mutableFloatObjectMapOf(key1: Float, value1: V, key2: Float, value2: V): MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap with key1, and key2 associated with value1, and value2, respectively.

mutableFloatObjectMapOf

fun <V : Any?> mutableFloatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V
): MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableFloatObjectMapOf

fun <V : Any?> mutableFloatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V
): MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableFloatObjectMapOf

fun <V : Any?> mutableFloatObjectMapOf(
    key1: Float,
    value1: V,
    key2: Float,
    value2: V,
    key3: Float,
    value3: V,
    key4: Float,
    value4: V,
    key5: Float,
    value5: V
): MutableFloatObjectMap<V>

Returns a new MutableFloatObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableFloatSetOf

fun mutableFloatSetOf(): MutableFloatSet

Returns a new MutableFloatSet.

mutableFloatSetOf

fun mutableFloatSetOf(element1: Float): MutableFloatSet

Returns a new MutableFloatSet with only element1 in it.

mutableFloatSetOf

fun mutableFloatSetOf(vararg elements: Float): MutableFloatSet

Returns a new MutableFloatSet with the specified elements.

mutableFloatSetOf

fun mutableFloatSetOf(element1: Float, element2: Float): MutableFloatSet

Returns a new MutableFloatSet with only element1 and element2 in it.

mutableFloatSetOf

fun mutableFloatSetOf(element1: Float, element2: Float, element3: Float): MutableFloatSet

Returns a new MutableFloatSet with only element1, element2, and element3 in it.

mutableIntFloatMapOf

fun mutableIntFloatMapOf(): MutableIntFloatMap

Returns a new MutableIntFloatMap.

mutableIntFloatMapOf

fun mutableIntFloatMapOf(key1: Int, value1: Float): MutableIntFloatMap

Returns a new MutableIntFloatMap with key1 associated with value1.

mutableIntFloatMapOf

fun mutableIntFloatMapOf(key1: Int, value1: Float, key2: Int, value2: Float): MutableIntFloatMap

Returns a new MutableIntFloatMap with key1, and key2 associated with value1, and value2, respectively.

mutableIntFloatMapOf

fun mutableIntFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float
): MutableIntFloatMap

Returns a new MutableIntFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableIntFloatMapOf

fun mutableIntFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float
): MutableIntFloatMap

Returns a new MutableIntFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableIntFloatMapOf

fun mutableIntFloatMapOf(
    key1: Int,
    value1: Float,
    key2: Int,
    value2: Float,
    key3: Int,
    value3: Float,
    key4: Int,
    value4: Float,
    key5: Int,
    value5: Float
): MutableIntFloatMap

Returns a new MutableIntFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableIntIntMapOf

fun mutableIntIntMapOf(): MutableIntIntMap

Returns a new MutableIntIntMap.

mutableIntIntMapOf

fun mutableIntIntMapOf(key1: Int, value1: Int): MutableIntIntMap

Returns a new MutableIntIntMap with key1 associated with value1.

mutableIntIntMapOf

fun mutableIntIntMapOf(key1: Int, value1: Int, key2: Int, value2: Int): MutableIntIntMap

Returns a new MutableIntIntMap with key1, and key2 associated with value1, and value2, respectively.

mutableIntIntMapOf

fun mutableIntIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int
): MutableIntIntMap

Returns a new MutableIntIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableIntIntMapOf

fun mutableIntIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int
): MutableIntIntMap

Returns a new MutableIntIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableIntIntMapOf

fun mutableIntIntMapOf(
    key1: Int,
    value1: Int,
    key2: Int,
    value2: Int,
    key3: Int,
    value3: Int,
    key4: Int,
    value4: Int,
    key5: Int,
    value5: Int
): MutableIntIntMap

Returns a new MutableIntIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableIntListOf

inline fun mutableIntListOf(): MutableIntList
Returns
MutableIntList

a new empty MutableIntList with the default capacity.

mutableIntListOf

fun mutableIntListOf(element1: Int): MutableIntList
Returns
MutableIntList

a new MutableIntList with element1 as the only item in the list.

mutableIntListOf

inline fun mutableIntListOf(vararg elements: Int): MutableIntList
Returns
MutableIntList

a new MutableIntList with the given elements, in order.

mutableIntListOf

fun mutableIntListOf(element1: Int, element2: Int): MutableIntList
Returns
MutableIntList

a new MutableIntList with 2 elements, element1 and element2, in order.

mutableIntListOf

fun mutableIntListOf(element1: Int, element2: Int, element3: Int): MutableIntList
Returns
MutableIntList

a new MutableIntList with 3 elements, element1, element2, and element3, in order.

mutableIntLongMapOf

fun mutableIntLongMapOf(): MutableIntLongMap

Returns a new MutableIntLongMap.

mutableIntLongMapOf

fun mutableIntLongMapOf(key1: Int, value1: Long): MutableIntLongMap

Returns a new MutableIntLongMap with key1 associated with value1.

mutableIntLongMapOf

fun mutableIntLongMapOf(key1: Int, value1: Long, key2: Int, value2: Long): MutableIntLongMap

Returns a new MutableIntLongMap with key1, and key2 associated with value1, and value2, respectively.

mutableIntLongMapOf

fun mutableIntLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long
): MutableIntLongMap

Returns a new MutableIntLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableIntLongMapOf

fun mutableIntLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long
): MutableIntLongMap

Returns a new MutableIntLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableIntLongMapOf

fun mutableIntLongMapOf(
    key1: Int,
    value1: Long,
    key2: Int,
    value2: Long,
    key3: Int,
    value3: Long,
    key4: Int,
    value4: Long,
    key5: Int,
    value5: Long
): MutableIntLongMap

Returns a new MutableIntLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableIntObjectMapOf

fun <V : Any?> mutableIntObjectMapOf(): MutableIntObjectMap<V>

Returns a new MutableIntObjectMap.

mutableIntObjectMapOf

fun <V : Any?> mutableIntObjectMapOf(key1: Int, value1: V): MutableIntObjectMap<V>

Returns a new MutableIntObjectMap with key1 associated with value1.

mutableIntObjectMapOf

fun <V : Any?> mutableIntObjectMapOf(key1: Int, value1: V, key2: Int, value2: V): MutableIntObjectMap<V>

Returns a new MutableIntObjectMap with key1, and key2 associated with value1, and value2, respectively.

mutableIntObjectMapOf

fun <V : Any?> mutableIntObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V
): MutableIntObjectMap<V>

Returns a new MutableIntObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableIntObjectMapOf

fun <V : Any?> mutableIntObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V
): MutableIntObjectMap<V>

Returns a new MutableIntObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableIntObjectMapOf

fun <V : Any?> mutableIntObjectMapOf(
    key1: Int,
    value1: V,
    key2: Int,
    value2: V,
    key3: Int,
    value3: V,
    key4: Int,
    value4: V,
    key5: Int,
    value5: V
): MutableIntObjectMap<V>

Returns a new MutableIntObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableIntSetOf

fun mutableIntSetOf(): MutableIntSet

Returns a new MutableIntSet.

mutableIntSetOf

fun mutableIntSetOf(element1: Int): MutableIntSet

Returns a new MutableIntSet with only element1 in it.

mutableIntSetOf

fun mutableIntSetOf(vararg elements: Int): MutableIntSet

Returns a new MutableIntSet with the specified elements.

mutableIntSetOf

fun mutableIntSetOf(element1: Int, element2: Int): MutableIntSet

Returns a new MutableIntSet with only element1 and element2 in it.

mutableIntSetOf

fun mutableIntSetOf(element1: Int, element2: Int, element3: Int): MutableIntSet

Returns a new MutableIntSet with only element1, element2, and element3 in it.

mutableLongFloatMapOf

fun mutableLongFloatMapOf(): MutableLongFloatMap

Returns a new MutableLongFloatMap.

mutableLongFloatMapOf

fun mutableLongFloatMapOf(key1: Long, value1: Float): MutableLongFloatMap

Returns a new MutableLongFloatMap with key1 associated with value1.

mutableLongFloatMapOf

fun mutableLongFloatMapOf(key1: Long, value1: Float, key2: Long, value2: Float): MutableLongFloatMap

Returns a new MutableLongFloatMap with key1, and key2 associated with value1, and value2, respectively.

mutableLongFloatMapOf

fun mutableLongFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float
): MutableLongFloatMap

Returns a new MutableLongFloatMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableLongFloatMapOf

fun mutableLongFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float
): MutableLongFloatMap

Returns a new MutableLongFloatMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableLongFloatMapOf

fun mutableLongFloatMapOf(
    key1: Long,
    value1: Float,
    key2: Long,
    value2: Float,
    key3: Long,
    value3: Float,
    key4: Long,
    value4: Float,
    key5: Long,
    value5: Float
): MutableLongFloatMap

Returns a new MutableLongFloatMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableLongIntMapOf

fun mutableLongIntMapOf(): MutableLongIntMap

Returns a new MutableLongIntMap.

mutableLongIntMapOf

fun mutableLongIntMapOf(key1: Long, value1: Int): MutableLongIntMap

Returns a new MutableLongIntMap with key1 associated with value1.

mutableLongIntMapOf

fun mutableLongIntMapOf(key1: Long, value1: Int, key2: Long, value2: Int): MutableLongIntMap

Returns a new MutableLongIntMap with key1, and key2 associated with value1, and value2, respectively.

mutableLongIntMapOf

fun mutableLongIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int
): MutableLongIntMap

Returns a new MutableLongIntMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableLongIntMapOf

fun mutableLongIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int
): MutableLongIntMap

Returns a new MutableLongIntMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableLongIntMapOf

fun mutableLongIntMapOf(
    key1: Long,
    value1: Int,
    key2: Long,
    value2: Int,
    key3: Long,
    value3: Int,
    key4: Long,
    value4: Int,
    key5: Long,
    value5: Int
): MutableLongIntMap

Returns a new MutableLongIntMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableLongListOf

inline fun mutableLongListOf(): MutableLongList
Returns
MutableLongList

a new empty MutableLongList with the default capacity.

mutableLongListOf

fun mutableLongListOf(element1: Long): MutableLongList
Returns
MutableLongList

a new MutableLongList with element1 as the only item in the list.

mutableLongListOf

inline fun mutableLongListOf(vararg elements: Long): MutableLongList
Returns
MutableLongList

a new MutableLongList with the given elements, in order.

mutableLongListOf

fun mutableLongListOf(element1: Long, element2: Long): MutableLongList
Returns
MutableLongList

a new MutableLongList with 2 elements, element1 and element2, in order.

mutableLongListOf

fun mutableLongListOf(element1: Long, element2: Long, element3: Long): MutableLongList
Returns
MutableLongList

a new MutableLongList with 3 elements, element1, element2, and element3, in order.

mutableLongLongMapOf

fun mutableLongLongMapOf(): MutableLongLongMap

Returns a new MutableLongLongMap.

mutableLongLongMapOf

fun mutableLongLongMapOf(key1: Long, value1: Long): MutableLongLongMap

Returns a new MutableLongLongMap with key1 associated with value1.

mutableLongLongMapOf

fun mutableLongLongMapOf(key1: Long, value1: Long, key2: Long, value2: Long): MutableLongLongMap

Returns a new MutableLongLongMap with key1, and key2 associated with value1, and value2, respectively.

mutableLongLongMapOf

fun mutableLongLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long
): MutableLongLongMap

Returns a new MutableLongLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableLongLongMapOf

fun mutableLongLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long
): MutableLongLongMap

Returns a new MutableLongLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableLongLongMapOf

fun mutableLongLongMapOf(
    key1: Long,
    value1: Long,
    key2: Long,
    value2: Long,
    key3: Long,
    value3: Long,
    key4: Long,
    value4: Long,
    key5: Long,
    value5: Long
): MutableLongLongMap

Returns a new MutableLongLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableLongObjectMapOf

fun <V : Any?> mutableLongObjectMapOf(): MutableLongObjectMap<V>

Returns a new MutableLongObjectMap.

mutableLongObjectMapOf

fun <V : Any?> mutableLongObjectMapOf(key1: Long, value1: V): MutableLongObjectMap<V>

Returns a new MutableLongObjectMap with key1 associated with value1.

mutableLongObjectMapOf

fun <V : Any?> mutableLongObjectMapOf(key1: Long, value1: V, key2: Long, value2: V): MutableLongObjectMap<V>

Returns a new MutableLongObjectMap with key1, and key2 associated with value1, and value2, respectively.

mutableLongObjectMapOf

fun <V : Any?> mutableLongObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V
): MutableLongObjectMap<V>

Returns a new MutableLongObjectMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableLongObjectMapOf

fun <V : Any?> mutableLongObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V
): MutableLongObjectMap<V>

Returns a new MutableLongObjectMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableLongObjectMapOf

fun <V : Any?> mutableLongObjectMapOf(
    key1: Long,
    value1: V,
    key2: Long,
    value2: V,
    key3: Long,
    value3: V,
    key4: Long,
    value4: V,
    key5: Long,
    value5: V
): MutableLongObjectMap<V>

Returns a new MutableLongObjectMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableLongSetOf

fun mutableLongSetOf(): MutableLongSet

Returns a new MutableLongSet.

mutableLongSetOf

fun mutableLongSetOf(element1: Long): MutableLongSet

Returns a new MutableLongSet with only element1 in it.

mutableLongSetOf

fun mutableLongSetOf(vararg elements: Long): MutableLongSet

Returns a new MutableLongSet with the specified elements.

mutableLongSetOf

fun mutableLongSetOf(element1: Long, element2: Long): MutableLongSet

Returns a new MutableLongSet with only element1 and element2 in it.

mutableLongSetOf

fun mutableLongSetOf(element1: Long, element2: Long, element3: Long): MutableLongSet

Returns a new MutableLongSet with only element1, element2, and element3 in it.

mutableObjectFloatMapOf

fun <K : Any?> mutableObjectFloatMapOf(): MutableObjectFloatMap<K>

Returns a new empty MutableObjectFloatMap.

mutableObjectFloatMapOf

fun <K : Any?> mutableObjectFloatMapOf(key1: K, value1: Float): MutableObjectFloatMap<K>

Returns a new MutableObjectFloatMap with only key1 associated with value1.

mutableObjectFloatMapOf

fun <K : Any?> mutableObjectFloatMapOf(key1: K, value1: Float, key2: K, value2: Float): MutableObjectFloatMap<K>

Returns a new MutableObjectFloatMap with only key1 and key2 associated with value1 and value2, respectively.

mutableObjectFloatMapOf

fun <K : Any?> mutableObjectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float
): MutableObjectFloatMap<K>

Returns a new MutableObjectFloatMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableObjectFloatMapOf

fun <K : Any?> mutableObjectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float
): MutableObjectFloatMap<K>

Returns a new MutableObjectFloatMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableObjectFloatMapOf

fun <K : Any?> mutableObjectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float,
    key5: K,
    value5: Float
): MutableObjectFloatMap<K>

Returns a new MutableObjectFloatMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableObjectIntMapOf

fun <K : Any?> mutableObjectIntMapOf(): MutableObjectIntMap<K>

Returns a new empty MutableObjectIntMap.

mutableObjectIntMapOf

fun <K : Any?> mutableObjectIntMapOf(key1: K, value1: Int): MutableObjectIntMap<K>

Returns a new MutableObjectIntMap with only key1 associated with value1.

mutableObjectIntMapOf

fun <K : Any?> mutableObjectIntMapOf(key1: K, value1: Int, key2: K, value2: Int): MutableObjectIntMap<K>

Returns a new MutableObjectIntMap with only key1 and key2 associated with value1 and value2, respectively.

mutableObjectIntMapOf

fun <K : Any?> mutableObjectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int
): MutableObjectIntMap<K>

Returns a new MutableObjectIntMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableObjectIntMapOf

fun <K : Any?> mutableObjectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int
): MutableObjectIntMap<K>

Returns a new MutableObjectIntMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableObjectIntMapOf

fun <K : Any?> mutableObjectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int,
    key5: K,
    value5: Int
): MutableObjectIntMap<K>

Returns a new MutableObjectIntMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableObjectListOf

inline fun <E : Any?> mutableObjectListOf(): MutableObjectList<E>
Returns
MutableObjectList<E>

a new empty MutableObjectList with the default capacity.

mutableObjectListOf

fun <E : Any?> mutableObjectListOf(element1: E): MutableObjectList<E>
Returns
MutableObjectList<E>

a new MutableObjectList with element1 as the only element in the list.

mutableObjectListOf

inline fun <E : Any?> mutableObjectListOf(vararg elements: E): MutableObjectList<E>
Returns
MutableObjectList<E>

a new MutableObjectList with the given elements, in order.

mutableObjectListOf

fun <E : Any?> mutableObjectListOf(element1: E, element2: E): MutableObjectList<E>
Returns
MutableObjectList<E>

a new MutableObjectList with 2 elements, element1 and element2, in order.

mutableObjectListOf

fun <E : Any?> mutableObjectListOf(element1: E, element2: E, element3: E): MutableObjectList<E>
Returns
MutableObjectList<E>

a new MutableObjectList with 3 elements, element1, element2, and element3, in order.

mutableObjectLongMapOf

fun <K : Any?> mutableObjectLongMapOf(): MutableObjectLongMap<K>

Returns a new empty MutableObjectLongMap.

mutableObjectLongMapOf

fun <K : Any?> mutableObjectLongMapOf(key1: K, value1: Long): MutableObjectLongMap<K>

Returns a new MutableObjectLongMap with only key1 associated with value1.

mutableObjectLongMapOf

fun <K : Any?> mutableObjectLongMapOf(key1: K, value1: Long, key2: K, value2: Long): MutableObjectLongMap<K>

Returns a new MutableObjectLongMap with only key1 and key2 associated with value1 and value2, respectively.

mutableObjectLongMapOf

fun <K : Any?> mutableObjectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long
): MutableObjectLongMap<K>

Returns a new MutableObjectLongMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

mutableObjectLongMapOf

fun <K : Any?> mutableObjectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long
): MutableObjectLongMap<K>

Returns a new MutableObjectLongMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

mutableObjectLongMapOf

fun <K : Any?> mutableObjectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long,
    key5: K,
    value5: Long
): MutableObjectLongMap<K>

Returns a new MutableObjectLongMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

mutableScatterMapOf

fun <K : Any?, V : Any?> mutableScatterMapOf(): MutableScatterMap<K, V>

Returns a new MutableScatterMap.

mutableScatterMapOf

fun <K : Any?, V : Any?> mutableScatterMapOf(vararg pairs: Pair<K, V>): MutableScatterMap<K, V>

Returns a new MutableScatterMap with the specified contents, given as a list of pairs where the first component is the key and the second is the value. If multiple pairs have the same key, the resulting map will contain the value from the last of those pairs.

mutableScatterSetOf

fun <E : Any?> mutableScatterSetOf(): MutableScatterSet<E>

Returns a new MutableScatterSet.

mutableScatterSetOf

fun <E : Any?> mutableScatterSetOf(element1: E): MutableScatterSet<E>

Returns a new MutableScatterSet with only element1 in it.

mutableScatterSetOf

fun <E : Any?> mutableScatterSetOf(vararg elements: E): MutableScatterSet<E>

Returns a new MutableScatterSet with the specified contents.

mutableScatterSetOf

fun <E : Any?> mutableScatterSetOf(element1: E, element2: E): MutableScatterSet<E>

Returns a new MutableScatterSet with only element1 and element2 in it.

mutableScatterSetOf

fun <E : Any?> mutableScatterSetOf(element1: E, element2: E, element3: E): MutableScatterSet<E>

Returns a new MutableScatterSet with only element1, element2, and element3 in it.

objectFloatMap

fun <K : Any?> objectFloatMap(): ObjectFloatMap<K>

Returns an empty, read-only ObjectFloatMap.

objectFloatMapOf

fun <K : Any?> objectFloatMapOf(key1: K, value1: Float): ObjectFloatMap<K>

Returns a new ObjectFloatMap with only key1 associated with value1.

objectFloatMapOf

fun <K : Any?> objectFloatMapOf(key1: K, value1: Float, key2: K, value2: Float): ObjectFloatMap<K>

Returns a new ObjectFloatMap with only key1 and key2 associated with value1 and value2, respectively.

objectFloatMapOf

fun <K : Any?> objectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float
): ObjectFloatMap<K>

Returns a new ObjectFloatMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

objectFloatMapOf

fun <K : Any?> objectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float
): ObjectFloatMap<K>

Returns a new ObjectFloatMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

objectFloatMapOf

fun <K : Any?> objectFloatMapOf(
    key1: K,
    value1: Float,
    key2: K,
    value2: Float,
    key3: K,
    value3: Float,
    key4: K,
    value4: Float,
    key5: K,
    value5: Float
): ObjectFloatMap<K>

Returns a new ObjectFloatMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

objectIntMap

fun <K : Any?> objectIntMap(): ObjectIntMap<K>

Returns an empty, read-only ObjectIntMap.

objectIntMapOf

fun <K : Any?> objectIntMapOf(key1: K, value1: Int): ObjectIntMap<K>

Returns a new ObjectIntMap with only key1 associated with value1.

objectIntMapOf

fun <K : Any?> objectIntMapOf(key1: K, value1: Int, key2: K, value2: Int): ObjectIntMap<K>

Returns a new ObjectIntMap with only key1 and key2 associated with value1 and value2, respectively.

objectIntMapOf

fun <K : Any?> objectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int
): ObjectIntMap<K>

Returns a new ObjectIntMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

objectIntMapOf

fun <K : Any?> objectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int
): ObjectIntMap<K>

Returns a new ObjectIntMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

objectIntMapOf

fun <K : Any?> objectIntMapOf(
    key1: K,
    value1: Int,
    key2: K,
    value2: Int,
    key3: K,
    value3: Int,
    key4: K,
    value4: Int,
    key5: K,
    value5: Int
): ObjectIntMap<K>

Returns a new ObjectIntMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

objectListOf

fun <E : Any?> objectListOf(): ObjectList<E>
Returns
ObjectList<E>

a read-only ObjectList with nothing in it.

objectListOf

fun <E : Any?> objectListOf(element1: E): ObjectList<E>
Returns
ObjectList<E>

a new read-only ObjectList with element1 as the only element in the list.

objectListOf

fun <E : Any?> objectListOf(vararg elements: E): ObjectList<E>
Returns
ObjectList<E>

a new read-only ObjectList with elements in order.

objectListOf

fun <E : Any?> objectListOf(element1: E, element2: E): ObjectList<E>
Returns
ObjectList<E>

a new read-only ObjectList with 2 elements, element1 and element2, in order.

objectListOf

fun <E : Any?> objectListOf(element1: E, element2: E, element3: E): ObjectList<E>
Returns
ObjectList<E>

a new read-only ObjectList with 3 elements, element1, element2, and element3, in order.

objectLongMap

fun <K : Any?> objectLongMap(): ObjectLongMap<K>

Returns an empty, read-only ObjectLongMap.

objectLongMapOf

fun <K : Any?> objectLongMapOf(key1: K, value1: Long): ObjectLongMap<K>

Returns a new ObjectLongMap with only key1 associated with value1.

objectLongMapOf

fun <K : Any?> objectLongMapOf(key1: K, value1: Long, key2: K, value2: Long): ObjectLongMap<K>

Returns a new ObjectLongMap with only key1 and key2 associated with value1 and value2, respectively.

objectLongMapOf

fun <K : Any?> objectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long
): ObjectLongMap<K>

Returns a new ObjectLongMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.

objectLongMapOf

fun <K : Any?> objectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long
): ObjectLongMap<K>

Returns a new ObjectLongMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.

objectLongMapOf

fun <K : Any?> objectLongMapOf(
    key1: K,
    value1: Long,
    key2: K,
    value2: Long,
    key3: K,
    value3: Long,
    key4: K,
    value4: Long,
    key5: K,
    value5: Long
): ObjectLongMap<K>

Returns a new ObjectLongMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.

scatterSetOf

fun <E : Any?> scatterSetOf(): ScatterSet<E>

Returns an empty, read-only ScatterSet.

scatterSetOf

fun <E : Any?> scatterSetOf(element1: E): ScatterSet<E>

Returns a new read-only ScatterSet with only element1 in it.

scatterSetOf

fun <E : Any?> scatterSetOf(vararg elements: E): ScatterSet<E>

Returns a new read-only ScatterSet with only elements in it.

scatterSetOf

fun <E : Any?> scatterSetOf(element1: E, element2: E): ScatterSet<E>

Returns a new read-only ScatterSet with only element1 and element2 in it.

scatterSetOf

fun <E : Any?> scatterSetOf(element1: E, element2: E, element3: E): ScatterSet<E>

Returns a new read-only ScatterSet with only element1, element2, and element3 in it.

Extension functions

contains

inline operator fun <T : Any?> SparseArrayCompat<T>.contains(key: Int): Boolean

Returns true if the collection contains key.

contains

inline operator fun <T : Any?> LongSparseArray<T>.contains(key: Long): Boolean

Returns true if the collection contains key.

forEach

inline fun <T : Any?> LongSparseArray<T>.forEach(action: (key: Long, value) -> Unit): Unit

Performs the given action for each key/value entry.

forEach

inline fun <T : Any?> SparseArrayCompat<T>.forEach(action: (key: Int, value) -> Unit): Unit

Performs the given action for each key/value entry.

getOrDefault

inline fun <T : Any?> SparseArrayCompat<T>.getOrDefault(key: Int, defaultValue: T): T

Return the value corresponding to key, or defaultValue when not present.

getOrDefault

inline fun <T : Any?> LongSparseArray<T>.getOrDefault(key: Long, defaultValue: T): T

Return the value corresponding to key, or defaultValue when not present.

getOrElse

inline fun <T : Any?> SparseArrayCompat<T>.getOrElse(key: Int, defaultValue: () -> T): T

Return the value corresponding to key, or from defaultValue when not present.

getOrElse

inline fun <T : Any?> LongSparseArray<T>.getOrElse(key: Long, defaultValue: () -> T): T

Return the value corresponding to key, or from defaultValue when not present.

isNotEmpty

inline fun <T : Any?> LongSparseArray<T>.isNotEmpty(): Boolean

Return true when the collection contains elements.

isNotEmpty

inline fun <T : Any?> SparseArrayCompat<T>.isNotEmpty(): Boolean

Return true when the collection contains elements.

keyIterator

fun <T : Any?> LongSparseArray<T>.keyIterator(): LongIterator

Return an iterator over the collection's keys.

keyIterator

fun <T : Any?> SparseArrayCompat<T>.keyIterator(): IntIterator

Return an iterator over the collection's keys.

plus

operator fun <T : Any?> LongSparseArray<T>.plus(other: LongSparseArray<T>): LongSparseArray<T>

Creates a new collection by adding or replacing entries from other.

plus

operator fun <T : Any?> SparseArrayCompat<T>.plus(other: SparseArrayCompat<T>): SparseArrayCompat<T>

Creates a new collection by adding or replacing entries from other.

set

inline operator fun <T : Any?> SparseArrayCompat<T>.set(key: Int, value: T): Unit

Allows the use of the index operator for storing values in the collection.

set

inline operator fun <T : Any?> LongSparseArray<T>.set(key: Long, value: T): Unit

Allows the use of the index operator for storing values in the collection.

valueIterator

fun <T : Any?> LongSparseArray<T>.valueIterator(): Iterator<T>

Return an iterator over the collection's values.

valueIterator

fun <T : Any?> SparseArrayCompat<T>.valueIterator(): Iterator<T>

Return an iterator over the collection's values.

Extension properties

val LongSparseArray<T>.sizeInt

Returns the number of key/value pairs in the collection.

val SparseArrayCompat<T>.sizeInt

Returns the number of key/value pairs in the collection.