androidx.collection
Classes
ArrayMap |
ArrayMap is a generic key->value mapping data structure that is designed to be more memory efficient than a traditional |
android
|
ArraySet |
ArraySet is a generic set data structure that is designed to be more memory efficient than a traditional |
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 |
|
Cmn
|
DoubleList |
|
Cmn
|
FloatFloatMap |
|
Cmn
|
FloatFloatPair |
Container to ease passing around a tuple of two |
Cmn
|
FloatIntMap |
|
Cmn
|
FloatList |
Cmn
|
|
FloatLongMap |
|
Cmn
|
FloatObjectMap |
|
Cmn
|
FloatSet |
|
Cmn
|
IntFloatMap |
|
Cmn
|
IntIntMap |
|
Cmn
|
IntIntPair |
Container to ease passing around a tuple of two |
Cmn
|
IntList |
Cmn
|
|
IntLongMap |
|
Cmn
|
IntObjectMap |
|
Cmn
|
IntSet |
|
Cmn
|
LongFloatMap |
|
Cmn
|
LongIntMap |
|
Cmn
|
LongList |
Cmn
|
|
LongLongMap |
|
Cmn
|
LongLongPair |
Container to ease passing around a tuple of two |
Cmn
|
LongObjectMap |
|
Cmn
|
LongSet |
|
Cmn
|
LongSparseArray |
SparseArray mapping longs to Objects. |
Cmn
android
N
|
LruCache |
A cache that holds strong references to a limited number of values. |
Cmn
|
MutableDoubleList |
|
Cmn
|
MutableFloatFloatMap |
|
Cmn
|
MutableFloatIntMap |
|
Cmn
|
MutableFloatList |
|
Cmn
|
MutableFloatLongMap |
|
Cmn
|
MutableFloatObjectMap |
|
Cmn
|
MutableFloatSet |
|
Cmn
|
MutableIntFloatMap |
|
Cmn
|
MutableIntIntMap |
|
Cmn
|
MutableIntList |
|
Cmn
|
MutableIntLongMap |
|
Cmn
|
MutableIntObjectMap |
|
Cmn
|
MutableIntSet |
|
Cmn
|
MutableLongFloatMap |
|
Cmn
|
MutableLongIntMap |
|
Cmn
|
MutableLongList |
|
Cmn
|
MutableLongLongMap |
|
Cmn
|
MutableLongObjectMap |
|
Cmn
|
MutableLongSet |
|
Cmn
|
MutableObjectFloatMap |
|
Cmn
|
MutableObjectIntMap |
|
Cmn
|
MutableObjectList |
|
Cmn
|
MutableObjectLongMap |
|
Cmn
|
MutableOrderedScatterSet |
|
Cmn
|
MutableScatterMap |
|
Cmn
N
JS
|
MutableScatterSet |
|
Cmn
N
JS
|
ObjectFloatMap |
|
Cmn
|
ObjectIntMap |
|
Cmn
|
ObjectList |
|
Cmn
|
ObjectLongMap |
|
Cmn
|
OrderedScatterSet |
|
Cmn
|
ScatterMap |
|
Cmn
N
JS
|
ScatterSet |
|
Cmn
N
JS
|
SieveCache |
|
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 |
android
|
ArrayMap<K, V> |
<K : Any?, V : Any?> arrayMapOf(vararg pairs: Pair<K, V>)Returns a new |
android
|
inline ArraySet<T> |
<T : Any?> arraySetOf()Returns an empty new |
Cmn
|
ArraySet<T> |
<T : Any?> arraySetOf(vararg values: T)Returns a new |
Cmn
|
inline DoubleList |
buildDoubleList(builderAction: MutableDoubleList.() -> Unit)Builds a new |
Cmn
|
inline DoubleList |
buildDoubleList(initialCapacity: Int, builderAction: MutableDoubleList.() -> Unit)Builds a new |
Cmn
|
inline FloatFloatMap |
buildFloatFloatMap(builderAction: MutableFloatFloatMap.() -> Unit)Builds a new |
Cmn
|
inline FloatFloatMap |
buildFloatFloatMap(initialCapacity: Int, builderAction: MutableFloatFloatMap.() -> Unit)Builds a new |
Cmn
|
inline FloatIntMap |
buildFloatIntMap(builderAction: MutableFloatIntMap.() -> Unit)Builds a new |
Cmn
|
inline FloatIntMap |
buildFloatIntMap(initialCapacity: Int, builderAction: MutableFloatIntMap.() -> Unit)Builds a new |
Cmn
|
inline FloatList |
buildFloatList(builderAction: MutableFloatList.() -> Unit)Builds a new |
Cmn
|
inline FloatList |
buildFloatList(initialCapacity: Int, builderAction: MutableFloatList.() -> Unit)Builds a new |
Cmn
|
inline FloatLongMap |
buildFloatLongMap(builderAction: MutableFloatLongMap.() -> Unit)Builds a new |
Cmn
|
inline FloatLongMap |
buildFloatLongMap(initialCapacity: Int, builderAction: MutableFloatLongMap.() -> Unit)Builds a new |
Cmn
|
inline FloatObjectMap<V> |
<V : Any?> buildFloatObjectMap(builderAction: MutableFloatObjectMap<V>.() -> Unit)Builds a new |
Cmn
|
inline FloatObjectMap<V> |
<V : Any?> buildFloatObjectMap(initialCapacity: Int, builderAction: MutableFloatObjectMap<V>.() -> Unit)Builds a new |
Cmn
|
inline FloatSet |
buildFloatSet(builderAction: MutableFloatSet.() -> Unit)Builds a new |
Cmn
|
inline FloatSet |
buildFloatSet(initialCapacity: Int, builderAction: MutableFloatSet.() -> Unit)Builds a new |
Cmn
|
inline IntFloatMap |
buildIntFloatMap(builderAction: MutableIntFloatMap.() -> Unit)Builds a new |
Cmn
|
inline IntFloatMap |
buildIntFloatMap(initialCapacity: Int, builderAction: MutableIntFloatMap.() -> Unit)Builds a new |
Cmn
|
inline IntIntMap |
buildIntIntMap(builderAction: MutableIntIntMap.() -> Unit)Builds a new |
Cmn
|
inline IntIntMap |
buildIntIntMap(initialCapacity: Int, builderAction: MutableIntIntMap.() -> Unit)Builds a new |
Cmn
|
inline IntList |
buildIntList(builderAction: MutableIntList.() -> Unit)Builds a new |
Cmn
|
inline IntList |
buildIntList(initialCapacity: Int, builderAction: MutableIntList.() -> Unit)Builds a new |
Cmn
|
inline IntLongMap |
buildIntLongMap(builderAction: MutableIntLongMap.() -> Unit)Builds a new |
Cmn
|
inline IntLongMap |
buildIntLongMap(initialCapacity: Int, builderAction: MutableIntLongMap.() -> Unit)Builds a new |
Cmn
|
inline IntObjectMap<V> |
<V : Any?> buildIntObjectMap(builderAction: MutableIntObjectMap<V>.() -> Unit)Builds a new |
Cmn
|
inline IntObjectMap<V> |
<V : Any?> buildIntObjectMap(initialCapacity: Int, builderAction: MutableIntObjectMap<V>.() -> Unit)Builds a new |
Cmn
|
inline IntSet |
buildIntSet(builderAction: MutableIntSet.() -> Unit)Builds a new |
Cmn
|
inline IntSet |
buildIntSet(initialCapacity: Int, builderAction: MutableIntSet.() -> Unit)Builds a new |
Cmn
|
inline LongFloatMap |
buildLongFloatMap(builderAction: MutableLongFloatMap.() -> Unit)Builds a new |
Cmn
|
inline LongFloatMap |
buildLongFloatMap(initialCapacity: Int, builderAction: MutableLongFloatMap.() -> Unit)Builds a new |
Cmn
|
inline LongIntMap |
buildLongIntMap(builderAction: MutableLongIntMap.() -> Unit)Builds a new |
Cmn
|
inline LongIntMap |
buildLongIntMap(initialCapacity: Int, builderAction: MutableLongIntMap.() -> Unit)Builds a new |
Cmn
|
inline LongList |
buildLongList(builderAction: MutableLongList.() -> Unit)Builds a new |
Cmn
|
inline LongList |
buildLongList(initialCapacity: Int, builderAction: MutableLongList.() -> Unit)Builds a new |
Cmn
|
inline LongLongMap |
buildLongLongMap(builderAction: MutableLongLongMap.() -> Unit)Builds a new |
Cmn
|
inline LongLongMap |
buildLongLongMap(initialCapacity: Int, builderAction: MutableLongLongMap.() -> Unit)Builds a new |
Cmn
|
inline LongObjectMap<V> |
<V : Any?> buildLongObjectMap(builderAction: MutableLongObjectMap<V>.() -> Unit)Builds a new |
Cmn
|
inline LongObjectMap<V> |
<V : Any?> buildLongObjectMap(initialCapacity: Int, builderAction: MutableLongObjectMap<V>.() -> Unit)Builds a new |
Cmn
|
inline LongSet |
buildLongSet(builderAction: MutableLongSet.() -> Unit)Builds a new |
Cmn
|
inline LongSet |
buildLongSet(initialCapacity: Int, builderAction: MutableLongSet.() -> Unit)Builds a new |
Cmn
|
inline ObjectFloatMap<K> |
<K : Any?> buildObjectFloatMap(builderAction: MutableObjectFloatMap<K>.() -> Unit)Builds a new |
Cmn
|
inline ObjectFloatMap<K> |
<K : Any?> buildObjectFloatMap(initialCapacity: Int, builderAction: MutableObjectFloatMap<K>.() -> Unit)Builds a new |
Cmn
|
inline ObjectIntMap<K> |
<K : Any?> buildObjectIntMap(builderAction: MutableObjectIntMap<K>.() -> Unit)Builds a new |
Cmn
|
inline ObjectIntMap<K> |
<K : Any?> buildObjectIntMap(initialCapacity: Int, builderAction: MutableObjectIntMap<K>.() -> Unit)Builds a new |
Cmn
|
inline ObjectLongMap<K> |
<K : Any?> buildObjectLongMap(builderAction: MutableObjectLongMap<K>.() -> Unit)Builds a new |
Cmn
|
inline ObjectLongMap<K> |
<K : Any?> buildObjectLongMap(initialCapacity: Int, builderAction: MutableObjectLongMap<K>.() -> Unit)Builds a new |
Cmn
|
DoubleList |
Cmn
|
|
DoubleList |
doubleListOf(element1: Double) |
Cmn
|
DoubleList |
doubleListOf(vararg elements: Double) |
Cmn
|
DoubleList |
doubleListOf(element1: Double, element2: Double) |
Cmn
|
DoubleList |
doubleListOf(element1: Double, element2: Double, element3: Double) |
Cmn
|
DoubleList |
Cmn
|
|
FloatFloatMap |
Returns an empty, read-only |
Cmn
|
FloatIntMap |
Returns an empty, read-only |
Cmn
|
FloatList |
Cmn
|
|
FloatLongMap |
Returns an empty, read-only |
Cmn
|
FloatObjectMap<V> |
<V : Any?> emptyFloatObjectMap()Returns an empty, read-only |
Cmn
|
FloatSet |
Returns an empty, read-only |
Cmn
|
IntFloatMap |
Returns an empty, read-only |
Cmn
|
IntIntMap |
Returns an empty, read-only |
Cmn
|
IntList |
Cmn
|
|
IntLongMap |
Returns an empty, read-only |
Cmn
|
IntObjectMap<V> |
<V : Any?> emptyIntObjectMap()Returns an empty, read-only |
Cmn
|
IntSet |
Returns an empty, read-only |
Cmn
|
LongFloatMap |
Returns an empty, read-only |
Cmn
|
LongIntMap |
Returns an empty, read-only |
Cmn
|
LongList |
Cmn
|
|
LongLongMap |
Returns an empty, read-only |
Cmn
|
LongObjectMap<V> |
<V : Any?> emptyLongObjectMap()Returns an empty, read-only |
Cmn
|
LongSet |
Returns an empty, read-only |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> emptyObjectFloatMap()Returns an empty, read-only |
Cmn
|
ObjectIntMap<K> |
<K : Any?> emptyObjectIntMap()Returns an empty, read-only |
Cmn
|
ObjectList<E> |
<E : Any?> emptyObjectList() |
Cmn
|
ObjectLongMap<K> |
<K : Any?> emptyObjectLongMap()Returns an empty, read-only |
Cmn
|
OrderedScatterSet<E> |
<E : Any?> emptyOrderedScatterSet()Returns an empty, read-only |
Cmn
|
ScatterMap<K, V> |
<K : Any?, V : Any?> emptyScatterMap()Returns an empty, read-only |
Cmn
|
ScatterSet<E> |
<E : Any?> emptyScatterSet()Returns an empty, read-only |
Cmn
|
FloatFloatMap |
Returns a new |
Cmn
|
FloatFloatMap |
floatFloatMapOf(key1: Float, value1: Float)Returns a new |
Cmn
|
FloatFloatMap |
floatFloatMapOf(key1: Float, value1: Float, key2: Float, value2: Float)Returns a new |
Cmn
|
FloatFloatMap |
floatFloatMapOf(Returns a new |
Cmn
|
FloatFloatMap |
floatFloatMapOf(Returns a new |
Cmn
|
FloatFloatMap |
floatFloatMapOf(Returns a new |
Cmn
|
FloatIntMap |
Returns a new |
Cmn
|
FloatIntMap |
floatIntMapOf(key1: Float, value1: Int)Returns a new |
Cmn
|
FloatIntMap |
floatIntMapOf(key1: Float, value1: Int, key2: Float, value2: Int)Returns a new |
Cmn
|
FloatIntMap |
Returns a new |
Cmn
|
FloatIntMap |
floatIntMapOf(Returns a new |
Cmn
|
FloatIntMap |
floatIntMapOf(Returns a new |
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 |
Cmn
|
FloatLongMap |
floatLongMapOf(key1: Float, value1: Long)Returns a new |
Cmn
|
FloatLongMap |
floatLongMapOf(key1: Float, value1: Long, key2: Float, value2: Long)Returns a new |
Cmn
|
FloatLongMap |
Returns a new |
Cmn
|
FloatLongMap |
floatLongMapOf(Returns a new |
Cmn
|
FloatLongMap |
floatLongMapOf(Returns a new |
Cmn
|
FloatObjectMap<V> |
<V : Any?> floatObjectMapOf()Returns an empty, read-only |
Cmn
|
FloatObjectMap<V> |
<V : Any?> floatObjectMapOf(key1: Float, value1: V)Returns a new |
Cmn
|
FloatObjectMap<V> |
<V : Any?> floatObjectMapOf(key1: Float, value1: V, key2: Float, value2: V)Returns a new |
Cmn
|
FloatObjectMap<V> |
<V : Any?> floatObjectMapOf(Returns a new |
Cmn
|
FloatObjectMap<V> |
<V : Any?> floatObjectMapOf(Returns a new |
Cmn
|
FloatObjectMap<V> |
<V : Any?> floatObjectMapOf(Returns a new |
Cmn
|
FloatSet |
Returns an empty, read-only |
Cmn
|
FloatSet |
floatSetOf(element1: Float) |
Cmn
|
FloatSet |
floatSetOf(vararg elements: Float) |
Cmn
|
FloatSet |
floatSetOf(element1: Float, element2: Float)Returns a new read-only |
Cmn
|
FloatSet |
floatSetOf(element1: Float, element2: Float, element3: Float)Returns a new read-only |
Cmn
|
IntFloatMap |
Returns a new |
Cmn
|
IntFloatMap |
intFloatMapOf(key1: Int, value1: Float)Returns a new |
Cmn
|
IntFloatMap |
intFloatMapOf(key1: Int, value1: Float, key2: Int, value2: Float)Returns a new |
Cmn
|
IntFloatMap |
Returns a new |
Cmn
|
IntFloatMap |
intFloatMapOf(Returns a new |
Cmn
|
IntFloatMap |
intFloatMapOf(Returns a new |
Cmn
|
IntIntMap |
Returns a new |
Cmn
|
IntIntMap |
intIntMapOf(key1: Int, value1: Int) |
Cmn
|
IntIntMap |
intIntMapOf(key1: Int, value1: Int, key2: Int, value2: Int)Returns a new |
Cmn
|
IntIntMap |
Returns a new |
Cmn
|
IntIntMap |
intIntMapOf(Returns a new |
Cmn
|
IntIntMap |
intIntMapOf(Returns a new |
Cmn
|
IntList |
Cmn
|
|
IntList |
Cmn
|
|
IntList |
Cmn
|
|
IntList |
Cmn
|
|
IntList |
Cmn
|
|
IntLongMap |
Returns a new |
Cmn
|
IntLongMap |
intLongMapOf(key1: Int, value1: Long)Returns a new |
Cmn
|
IntLongMap |
intLongMapOf(key1: Int, value1: Long, key2: Int, value2: Long)Returns a new |
Cmn
|
IntLongMap |
Returns a new |
Cmn
|
IntLongMap |
intLongMapOf(Returns a new |
Cmn
|
IntLongMap |
intLongMapOf(Returns a new |
Cmn
|
IntObjectMap<V> |
<V : Any?> intObjectMapOf()Returns an empty, read-only |
Cmn
|
IntObjectMap<V> |
<V : Any?> intObjectMapOf(key1: Int, value1: V)Returns a new |
Cmn
|
IntObjectMap<V> |
<V : Any?> intObjectMapOf(key1: Int, value1: V, key2: Int, value2: V)Returns a new |
Cmn
|
IntObjectMap<V> |
<V : Any?> intObjectMapOf(Returns a new |
Cmn
|
IntObjectMap<V> |
<V : Any?> intObjectMapOf(Returns a new |
Cmn
|
IntObjectMap<V> |
<V : Any?> intObjectMapOf(Returns a new |
Cmn
|
IntSet |
intSetOf()Returns an empty, read-only |
Cmn
|
IntSet |
Cmn
|
|
IntSet |
Cmn
|
|
IntSet |
Returns a new read-only |
Cmn
|
IntSet |
Returns a new read-only |
Cmn
|
LongFloatMap |
Returns a new |
Cmn
|
LongFloatMap |
longFloatMapOf(key1: Long, value1: Float)Returns a new |
Cmn
|
LongFloatMap |
longFloatMapOf(key1: Long, value1: Float, key2: Long, value2: Float)Returns a new |
Cmn
|
LongFloatMap |
Returns a new |
Cmn
|
LongFloatMap |
longFloatMapOf(Returns a new |
Cmn
|
LongFloatMap |
longFloatMapOf(Returns a new |
Cmn
|
LongIntMap |
Returns a new |
Cmn
|
LongIntMap |
longIntMapOf(key1: Long, value1: Int)Returns a new |
Cmn
|
LongIntMap |
longIntMapOf(key1: Long, value1: Int, key2: Long, value2: Int)Returns a new |
Cmn
|
LongIntMap |
Returns a new |
Cmn
|
LongIntMap |
longIntMapOf(Returns a new |
Cmn
|
LongIntMap |
longIntMapOf(Returns a new |
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 |
Cmn
|
LongLongMap |
longLongMapOf(key1: Long, value1: Long)Returns a new |
Cmn
|
LongLongMap |
longLongMapOf(key1: Long, value1: Long, key2: Long, value2: Long)Returns a new |
Cmn
|
LongLongMap |
Returns a new |
Cmn
|
LongLongMap |
longLongMapOf(Returns a new |
Cmn
|
LongLongMap |
longLongMapOf(Returns a new |
Cmn
|
LongObjectMap<V> |
<V : Any?> longObjectMapOf()Returns an empty, read-only |
Cmn
|
LongObjectMap<V> |
<V : Any?> longObjectMapOf(key1: Long, value1: V)Returns a new |
Cmn
|
LongObjectMap<V> |
<V : Any?> longObjectMapOf(key1: Long, value1: V, key2: Long, value2: V)Returns a new |
Cmn
|
LongObjectMap<V> |
<V : Any?> longObjectMapOf(Returns a new |
Cmn
|
LongObjectMap<V> |
<V : Any?> longObjectMapOf(Returns a new |
Cmn
|
LongObjectMap<V> |
<V : Any?> longObjectMapOf(Returns a new |
Cmn
|
LongSet |
Returns an empty, read-only |
Cmn
|
LongSet |
Cmn
|
|
LongSet |
Cmn
|
|
LongSet |
Returns a new read-only |
Cmn
|
LongSet |
Returns a new read-only |
Cmn
|
inline LruCache<K, V> |
<K : Any, V : Any> lruCache(Creates an |
Cmn
|
inline MutableDoubleList |
Cmn
|
|
MutableDoubleList |
mutableDoubleListOf(element1: Double) |
Cmn
|
inline MutableDoubleList |
mutableDoubleListOf(vararg elements: Double) |
Cmn
|
MutableDoubleList |
mutableDoubleListOf(element1: Double, element2: Double) |
Cmn
|
MutableDoubleList |
mutableDoubleListOf(element1: Double, element2: Double, element3: Double) |
Cmn
|
MutableFloatFloatMap |
Returns a new |
Cmn
|
MutableFloatFloatMap |
mutableFloatFloatMapOf(key1: Float, value1: Float)Returns a new |
Cmn
|
MutableFloatFloatMap |
mutableFloatFloatMapOf(Returns a new |
Cmn
|
MutableFloatFloatMap |
mutableFloatFloatMapOf(Returns a new |
Cmn
|
MutableFloatFloatMap |
mutableFloatFloatMapOf(Returns a new |
Cmn
|
MutableFloatFloatMap |
mutableFloatFloatMapOf(Returns a new |
Cmn
|
MutableFloatIntMap |
Returns a new |
Cmn
|
MutableFloatIntMap |
mutableFloatIntMapOf(key1: Float, value1: Int)Returns a new |
Cmn
|
MutableFloatIntMap |
mutableFloatIntMapOf(key1: Float, value1: Int, key2: Float, value2: Int)Returns a new |
Cmn
|
MutableFloatIntMap |
Returns a new |
Cmn
|
MutableFloatIntMap |
mutableFloatIntMapOf(Returns a new |
Cmn
|
MutableFloatIntMap |
mutableFloatIntMapOf(Returns a new |
Cmn
|
inline MutableFloatList |
Cmn
|
|
MutableFloatList |
mutableFloatListOf(element1: Float) |
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 |
Cmn
|
MutableFloatLongMap |
mutableFloatLongMapOf(key1: Float, value1: Long)Returns a new |
Cmn
|
MutableFloatLongMap |
mutableFloatLongMapOf(key1: Float, value1: Long, key2: Float, value2: Long)Returns a new |
Cmn
|
MutableFloatLongMap |
mutableFloatLongMapOf(Returns a new |
Cmn
|
MutableFloatLongMap |
mutableFloatLongMapOf(Returns a new |
Cmn
|
MutableFloatLongMap |
mutableFloatLongMapOf(Returns a new |
Cmn
|
MutableFloatObjectMap<V> |
<V : Any?> mutableFloatObjectMapOf()Returns a new |
Cmn
|
MutableFloatObjectMap<V> |
<V : Any?> mutableFloatObjectMapOf(key1: Float, value1: V)Returns a new |
Cmn
|
MutableFloatObjectMap<V> |
<V : Any?> mutableFloatObjectMapOf(key1: Float, value1: V, key2: Float, value2: V)Returns a new |
Cmn
|
MutableFloatObjectMap<V> |
<V : Any?> mutableFloatObjectMapOf(Returns a new |
Cmn
|
MutableFloatObjectMap<V> |
<V : Any?> mutableFloatObjectMapOf(Returns a new |
Cmn
|
MutableFloatObjectMap<V> |
<V : Any?> mutableFloatObjectMapOf(Returns a new |
Cmn
|
MutableFloatSet |
Returns a new |
Cmn
|
MutableFloatSet |
mutableFloatSetOf(element1: Float)Returns a new |
Cmn
|
MutableFloatSet |
mutableFloatSetOf(vararg elements: Float)Returns a new |
Cmn
|
MutableFloatSet |
mutableFloatSetOf(element1: Float, element2: Float)Returns a new |
Cmn
|
MutableFloatSet |
mutableFloatSetOf(element1: Float, element2: Float, element3: Float)Returns a new |
Cmn
|
MutableIntFloatMap |
Returns a new |
Cmn
|
MutableIntFloatMap |
mutableIntFloatMapOf(key1: Int, value1: Float)Returns a new |
Cmn
|
MutableIntFloatMap |
mutableIntFloatMapOf(key1: Int, value1: Float, key2: Int, value2: Float)Returns a new |
Cmn
|
MutableIntFloatMap |
Returns a new |
Cmn
|
MutableIntFloatMap |
mutableIntFloatMapOf(Returns a new |
Cmn
|
MutableIntFloatMap |
mutableIntFloatMapOf(Returns a new |
Cmn
|
MutableIntIntMap |
Returns a new |
Cmn
|
MutableIntIntMap |
mutableIntIntMapOf(key1: Int, value1: Int)Returns a new |
Cmn
|
MutableIntIntMap |
mutableIntIntMapOf(key1: Int, value1: Int, key2: Int, value2: Int)Returns a new |
Cmn
|
MutableIntIntMap |
Returns a new |
Cmn
|
MutableIntIntMap |
mutableIntIntMapOf(Returns a new |
Cmn
|
MutableIntIntMap |
mutableIntIntMapOf(Returns a new |
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 |
Cmn
|
MutableIntLongMap |
mutableIntLongMapOf(key1: Int, value1: Long)Returns a new |
Cmn
|
MutableIntLongMap |
mutableIntLongMapOf(key1: Int, value1: Long, key2: Int, value2: Long)Returns a new |
Cmn
|
MutableIntLongMap |
Returns a new |
Cmn
|
MutableIntLongMap |
mutableIntLongMapOf(Returns a new |
Cmn
|
MutableIntLongMap |
mutableIntLongMapOf(Returns a new |
Cmn
|
MutableIntObjectMap<V> |
<V : Any?> mutableIntObjectMapOf()Returns a new |
Cmn
|
MutableIntObjectMap<V> |
<V : Any?> mutableIntObjectMapOf(key1: Int, value1: V)Returns a new |
Cmn
|
MutableIntObjectMap<V> |
<V : Any?> mutableIntObjectMapOf(key1: Int, value1: V, key2: Int, value2: V)Returns a new |
Cmn
|
MutableIntObjectMap<V> |
<V : Any?> mutableIntObjectMapOf(Returns a new |
Cmn
|
MutableIntObjectMap<V> |
<V : Any?> mutableIntObjectMapOf(Returns a new |
Cmn
|
MutableIntObjectMap<V> |
<V : Any?> mutableIntObjectMapOf(Returns a new |
Cmn
|
MutableIntSet |
Returns a new |
Cmn
|
MutableIntSet |
mutableIntSetOf(element1: Int)Returns a new |
Cmn
|
MutableIntSet |
mutableIntSetOf(vararg elements: Int)Returns a new |
Cmn
|
MutableIntSet |
mutableIntSetOf(element1: Int, element2: Int)Returns a new |
Cmn
|
MutableIntSet |
mutableIntSetOf(element1: Int, element2: Int, element3: Int)Returns a new |
Cmn
|
MutableLongFloatMap |
Returns a new |
Cmn
|
MutableLongFloatMap |
mutableLongFloatMapOf(key1: Long, value1: Float)Returns a new |
Cmn
|
MutableLongFloatMap |
mutableLongFloatMapOf(key1: Long, value1: Float, key2: Long, value2: Float)Returns a new |
Cmn
|
MutableLongFloatMap |
mutableLongFloatMapOf(Returns a new |
Cmn
|
MutableLongFloatMap |
mutableLongFloatMapOf(Returns a new |
Cmn
|
MutableLongFloatMap |
mutableLongFloatMapOf(Returns a new |
Cmn
|
MutableLongIntMap |
Returns a new |
Cmn
|
MutableLongIntMap |
mutableLongIntMapOf(key1: Long, value1: Int)Returns a new |
Cmn
|
MutableLongIntMap |
mutableLongIntMapOf(key1: Long, value1: Int, key2: Long, value2: Int)Returns a new |
Cmn
|
MutableLongIntMap |
Returns a new |
Cmn
|
MutableLongIntMap |
mutableLongIntMapOf(Returns a new |
Cmn
|
MutableLongIntMap |
mutableLongIntMapOf(Returns a new |
Cmn
|
inline MutableLongList |
Cmn
|
|
MutableLongList |
mutableLongListOf(element1: Long) |
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 |
Cmn
|
MutableLongLongMap |
mutableLongLongMapOf(key1: Long, value1: Long)Returns a new |
Cmn
|
MutableLongLongMap |
mutableLongLongMapOf(key1: Long, value1: Long, key2: Long, value2: Long)Returns a new |
Cmn
|
MutableLongLongMap |
Returns a new |
Cmn
|
MutableLongLongMap |
mutableLongLongMapOf(Returns a new |
Cmn
|
MutableLongLongMap |
mutableLongLongMapOf(Returns a new |
Cmn
|
MutableLongObjectMap<V> |
<V : Any?> mutableLongObjectMapOf()Returns a new |
Cmn
|
MutableLongObjectMap<V> |
<V : Any?> mutableLongObjectMapOf(key1: Long, value1: V)Returns a new |
Cmn
|
MutableLongObjectMap<V> |
<V : Any?> mutableLongObjectMapOf(key1: Long, value1: V, key2: Long, value2: V)Returns a new |
Cmn
|
MutableLongObjectMap<V> |
<V : Any?> mutableLongObjectMapOf(Returns a new |
Cmn
|
MutableLongObjectMap<V> |
<V : Any?> mutableLongObjectMapOf(Returns a new |
Cmn
|
MutableLongObjectMap<V> |
<V : Any?> mutableLongObjectMapOf(Returns a new |
Cmn
|
MutableLongSet |
Returns a new |
Cmn
|
MutableLongSet |
mutableLongSetOf(element1: Long)Returns a new |
Cmn
|
MutableLongSet |
mutableLongSetOf(vararg elements: Long)Returns a new |
Cmn
|
MutableLongSet |
mutableLongSetOf(element1: Long, element2: Long)Returns a new |
Cmn
|
MutableLongSet |
mutableLongSetOf(element1: Long, element2: Long, element3: Long)Returns a new |
Cmn
|
MutableObjectFloatMap<K> |
<K : Any?> mutableObjectFloatMapOf()Returns a new empty |
Cmn
|
MutableObjectFloatMap<K> |
<K : Any?> mutableObjectFloatMapOf(key1: K, value1: Float)Returns a new |
Cmn
|
MutableObjectFloatMap<K> |
<K : Any?> mutableObjectFloatMapOf(key1: K, value1: Float, key2: K, value2: Float)Returns a new |
Cmn
|
MutableObjectFloatMap<K> |
<K : Any?> mutableObjectFloatMapOf(Returns a new |
Cmn
|
MutableObjectFloatMap<K> |
<K : Any?> mutableObjectFloatMapOf(Returns a new |
Cmn
|
MutableObjectFloatMap<K> |
<K : Any?> mutableObjectFloatMapOf(Returns a new |
Cmn
|
MutableObjectIntMap<K> |
<K : Any?> mutableObjectIntMapOf()Returns a new empty |
Cmn
|
MutableObjectIntMap<K> |
<K : Any?> mutableObjectIntMapOf(key1: K, value1: Int)Returns a new |
Cmn
|
MutableObjectIntMap<K> |
<K : Any?> mutableObjectIntMapOf(key1: K, value1: Int, key2: K, value2: Int)Returns a new |
Cmn
|
MutableObjectIntMap<K> |
<K : Any?> mutableObjectIntMapOf(Returns a new |
Cmn
|
MutableObjectIntMap<K> |
<K : Any?> mutableObjectIntMapOf(Returns a new |
Cmn
|
MutableObjectIntMap<K> |
<K : Any?> mutableObjectIntMapOf(Returns a new |
Cmn
|
inline MutableObjectList<E> |
<E : Any?> mutableObjectListOf() |
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> |
<K : Any?> mutableObjectLongMapOf()Returns a new empty |
Cmn
|
MutableObjectLongMap<K> |
<K : Any?> mutableObjectLongMapOf(key1: K, value1: Long)Returns a new |
Cmn
|
MutableObjectLongMap<K> |
<K : Any?> mutableObjectLongMapOf(key1: K, value1: Long, key2: K, value2: Long)Returns a new |
Cmn
|
MutableObjectLongMap<K> |
<K : Any?> mutableObjectLongMapOf(Returns a new |
Cmn
|
MutableObjectLongMap<K> |
<K : Any?> mutableObjectLongMapOf(Returns a new |
Cmn
|
MutableObjectLongMap<K> |
<K : Any?> mutableObjectLongMapOf(Returns a new |
Cmn
|
MutableOrderedScatterSet<E> |
<E : Any?> mutableOrderedScatterSetOf()Returns a new |
Cmn
|
MutableOrderedScatterSet<E> |
<E : Any?> mutableOrderedScatterSetOf(element1: E)Returns a new |
Cmn
|
MutableOrderedScatterSet<E> |
<E : Any?> mutableOrderedScatterSetOf(vararg elements: E)Returns a new |
Cmn
|
MutableOrderedScatterSet<E> |
<E : Any?> mutableOrderedScatterSetOf(element1: E, element2: E)Returns a new |
Cmn
|
MutableOrderedScatterSet<E> |
<E : Any?> mutableOrderedScatterSetOf(element1: E, element2: E, element3: E)Returns a new |
Cmn
|
MutableScatterMap<K, V> |
<K : Any?, V : Any?> mutableScatterMapOf()Returns a new |
Cmn
|
MutableScatterMap<K, V> |
<K : Any?, V : Any?> mutableScatterMapOf(vararg pairs: Pair<K, V>)Returns a new |
Cmn
|
MutableScatterSet<E> |
<E : Any?> mutableScatterSetOf()Returns a new |
Cmn
|
MutableScatterSet<E> |
<E : Any?> mutableScatterSetOf(element1: E)Returns a new |
Cmn
|
MutableScatterSet<E> |
<E : Any?> mutableScatterSetOf(vararg elements: E)Returns a new |
Cmn
|
MutableScatterSet<E> |
<E : Any?> mutableScatterSetOf(element1: E, element2: E)Returns a new |
Cmn
|
MutableScatterSet<E> |
<E : Any?> mutableScatterSetOf(element1: E, element2: E, element3: E)Returns a new |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> objectFloatMap()Returns an empty, read-only |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> objectFloatMapOf(key1: K, value1: Float)Returns a new |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> objectFloatMapOf(key1: K, value1: Float, key2: K, value2: Float)Returns a new |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> objectFloatMapOf(Returns a new |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> objectFloatMapOf(Returns a new |
Cmn
|
ObjectFloatMap<K> |
<K : Any?> objectFloatMapOf(Returns a new |
Cmn
|
ObjectIntMap<K> |
<K : Any?> objectIntMap()Returns an empty, read-only |
Cmn
|
ObjectIntMap<K> |
<K : Any?> objectIntMapOf(key1: K, value1: Int)Returns a new |
Cmn
|
ObjectIntMap<K> |
<K : Any?> objectIntMapOf(key1: K, value1: Int, key2: K, value2: Int)Returns a new |
Cmn
|
ObjectIntMap<K> |
<K : Any?> objectIntMapOf(Returns a new |
Cmn
|
ObjectIntMap<K> |
<K : Any?> objectIntMapOf(Returns a new |
Cmn
|
ObjectIntMap<K> |
<K : Any?> objectIntMapOf(Returns a new |
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 |
Cmn
|
ObjectLongMap<K> |
<K : Any?> objectLongMapOf(key1: K, value1: Long)Returns a new |
Cmn
|
ObjectLongMap<K> |
<K : Any?> objectLongMapOf(key1: K, value1: Long, key2: K, value2: Long)Returns a new |
Cmn
|
ObjectLongMap<K> |
<K : Any?> objectLongMapOf(Returns a new |
Cmn
|
ObjectLongMap<K> |
<K : Any?> objectLongMapOf(Returns a new |
Cmn
|
ObjectLongMap<K> |
<K : Any?> objectLongMapOf(Returns a new |
Cmn
|
OrderedScatterSet<E> |
<E : Any?> orderedScatterSetOf()Returns an empty, read-only |
Cmn
|
OrderedScatterSet<E> |
<E : Any?> orderedScatterSetOf(element1: E)Returns a new read-only |
Cmn
|
OrderedScatterSet<E> |
<E : Any?> orderedScatterSetOf(vararg elements: E)Returns a new read-only |
Cmn
|
OrderedScatterSet<E> |
<E : Any?> orderedScatterSetOf(element1: E, element2: E)Returns a new read-only |
Cmn
|
OrderedScatterSet<E> |
<E : Any?> orderedScatterSetOf(element1: E, element2: E, element3: E)Returns a new read-only |
Cmn
|
ScatterSet<E> |
<E : Any?> scatterSetOf()Returns an empty, read-only |
Cmn
|
ScatterSet<E> |
<E : Any?> scatterSetOf(element1: E)Returns a new read-only |
Cmn
|
ScatterSet<E> |
<E : Any?> scatterSetOf(vararg elements: E)Returns a new read-only |
Cmn
|
ScatterSet<E> |
<E : Any?> scatterSetOf(element1: E, element2: E)Returns a new read-only |
Cmn
|
ScatterSet<E> |
<E : Any?> scatterSetOf(element1: E, element2: E, element3: E)Returns a new read-only |
Cmn
|
Extension functions summary
inline operator Boolean |
<T : Any?> SparseArrayCompat<T>.contains(key: Int)Returns true if the collection contains |
Cmn
|
inline operator Boolean |
<T : Any?> LongSparseArray<T>.contains(key: Long)Returns true if the collection contains |
Cmn
|
inline Unit |
<T : Any?> LongSparseArray<T>.forEach(action: (key: Long, value) -> Unit)Performs the given |
Cmn
|
inline Unit |
<T : Any?> SparseArrayCompat<T>.forEach(action: (key: Int, value) -> Unit)Performs the given |
Cmn
|
inline T |
<T : Any?> SparseArrayCompat<T>.getOrDefault(key: Int, defaultValue: T)Return the value corresponding to |
Cmn
|
inline T |
<T : Any?> LongSparseArray<T>.getOrDefault(key: Long, defaultValue: T)Return the value corresponding to |
Cmn
|
inline T |
<T : Any?> SparseArrayCompat<T>.getOrElse(key: Int, defaultValue: () -> T)Return the value corresponding to |
Cmn
|
inline T |
<T : Any?> LongSparseArray<T>.getOrElse(key: Long, defaultValue: () -> T)Return the value corresponding to |
Cmn
|
inline Boolean |
<T : Any?> LongSparseArray<T>.isNotEmpty()Return true when the collection contains elements. |
Cmn
|
inline Boolean |
<T : Any?> SparseArrayCompat<T>.isNotEmpty()Return true when the collection contains elements. |
Cmn
|
LongIterator |
<T : Any?> LongSparseArray<T>.keyIterator()Return an iterator over the collection's keys. |
Cmn
|
IntIterator |
<T : Any?> SparseArrayCompat<T>.keyIterator()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 |
Cmn
|
operator SparseArrayCompat<T> |
<T : Any?> SparseArrayCompat<T>.plus(other: SparseArrayCompat<T>)Creates a new collection by adding or replacing entries from |
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> |
<T : Any?> LongSparseArray<T>.valueIterator()Return an iterator over the collection's values. |
Cmn
|
Iterator<T> |
<T : Any?> SparseArrayCompat<T>.valueIterator()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
fun <T : Any?> arraySetOf(vararg values: T): ArraySet<T>
Returns a new ArraySet with the specified contents.
buildDoubleList
inline fun buildDoubleList(builderAction: MutableDoubleList.() -> Unit): DoubleList
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableDoubleList.() -> Unit |
Lambda in which the |
buildDoubleList
inline fun buildDoubleList(initialCapacity: Int, builderAction: MutableDoubleList.() -> Unit): DoubleList
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableDoubleList.() -> Unit |
Lambda in which the |
buildFloatFloatMap
inline fun buildFloatFloatMap(builderAction: MutableFloatFloatMap.() -> Unit): FloatFloatMap
Builds a new FloatFloatMap by populating a MutableFloatFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableFloatFloatMap.() -> Unit |
Lambda in which the |
buildFloatFloatMap
inline fun buildFloatFloatMap(initialCapacity: Int, builderAction: MutableFloatFloatMap.() -> Unit): FloatFloatMap
Builds a new FloatFloatMap by populating a MutableFloatFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableFloatFloatMap.() -> Unit |
Lambda in which the |
buildFloatIntMap
inline fun buildFloatIntMap(builderAction: MutableFloatIntMap.() -> Unit): FloatIntMap
Builds a new FloatIntMap by populating a MutableFloatIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableFloatIntMap.() -> Unit |
Lambda in which the |
buildFloatIntMap
inline fun buildFloatIntMap(initialCapacity: Int, builderAction: MutableFloatIntMap.() -> Unit): FloatIntMap
Builds a new FloatIntMap by populating a MutableFloatIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableFloatIntMap.() -> Unit |
Lambda in which the |
buildFloatList
inline fun buildFloatList(builderAction: MutableFloatList.() -> Unit): FloatList
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableFloatList.() -> Unit |
Lambda in which the |
buildFloatList
inline fun buildFloatList(initialCapacity: Int, builderAction: MutableFloatList.() -> Unit): FloatList
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableFloatList.() -> Unit |
Lambda in which the |
buildFloatLongMap
inline fun buildFloatLongMap(builderAction: MutableFloatLongMap.() -> Unit): FloatLongMap
Builds a new FloatLongMap by populating a MutableFloatLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableFloatLongMap.() -> Unit |
Lambda in which the |
buildFloatLongMap
inline fun buildFloatLongMap(initialCapacity: Int, builderAction: MutableFloatLongMap.() -> Unit): FloatLongMap
Builds a new FloatLongMap by populating a MutableFloatLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableFloatLongMap.() -> Unit |
Lambda in which the |
buildFloatObjectMap
inline fun <V : Any?> buildFloatObjectMap(builderAction: MutableFloatObjectMap<V>.() -> Unit): FloatObjectMap<V>
Builds a new FloatObjectMap by populating a MutableFloatObjectMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableFloatObjectMap<V>.() -> Unit |
Lambda in which the |
buildFloatObjectMap
inline fun <V : Any?> buildFloatObjectMap(initialCapacity: Int, builderAction: MutableFloatObjectMap<V>.() -> Unit): FloatObjectMap<V>
Builds a new FloatObjectMap by populating a MutableFloatObjectMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableFloatObjectMap<V>.() -> Unit |
Lambda in which the |
buildFloatSet
inline fun buildFloatSet(builderAction: MutableFloatSet.() -> Unit): FloatSet
Builds a new FloatSet by populating a MutableFloatSet using the given builderAction.
The set passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableFloatSet.() -> Unit |
Lambda in which the |
buildFloatSet
inline fun buildFloatSet(initialCapacity: Int, builderAction: MutableFloatSet.() -> Unit): FloatSet
Builds a new FloatSet by populating a MutableFloatSet using the given builderAction.
The set passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableFloatSet.() -> Unit |
Lambda in which the |
buildIntFloatMap
inline fun buildIntFloatMap(builderAction: MutableIntFloatMap.() -> Unit): IntFloatMap
Builds a new IntFloatMap by populating a MutableIntFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableIntFloatMap.() -> Unit |
Lambda in which the |
buildIntFloatMap
inline fun buildIntFloatMap(initialCapacity: Int, builderAction: MutableIntFloatMap.() -> Unit): IntFloatMap
Builds a new IntFloatMap by populating a MutableIntFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableIntFloatMap.() -> Unit |
Lambda in which the |
buildIntIntMap
inline fun buildIntIntMap(builderAction: MutableIntIntMap.() -> Unit): IntIntMap
Builds a new IntIntMap by populating a MutableIntIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableIntIntMap.() -> Unit |
Lambda in which the |
buildIntIntMap
inline fun buildIntIntMap(initialCapacity: Int, builderAction: MutableIntIntMap.() -> Unit): IntIntMap
Builds a new IntIntMap by populating a MutableIntIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableIntIntMap.() -> Unit |
Lambda in which the |
buildIntList
inline fun buildIntList(builderAction: MutableIntList.() -> Unit): IntList
Builds a new IntList by populating a MutableIntList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableIntList.() -> Unit |
Lambda in which the |
buildIntList
inline fun buildIntList(initialCapacity: Int, builderAction: MutableIntList.() -> Unit): IntList
Builds a new IntList by populating a MutableIntList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableIntList.() -> Unit |
Lambda in which the |
buildIntLongMap
inline fun buildIntLongMap(builderAction: MutableIntLongMap.() -> Unit): IntLongMap
Builds a new IntLongMap by populating a MutableIntLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableIntLongMap.() -> Unit |
Lambda in which the |
buildIntLongMap
inline fun buildIntLongMap(initialCapacity: Int, builderAction: MutableIntLongMap.() -> Unit): IntLongMap
Builds a new IntLongMap by populating a MutableIntLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableIntLongMap.() -> Unit |
Lambda in which the |
buildIntObjectMap
inline fun <V : Any?> buildIntObjectMap(builderAction: MutableIntObjectMap<V>.() -> Unit): IntObjectMap<V>
Builds a new IntObjectMap by populating a MutableIntObjectMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableIntObjectMap<V>.() -> Unit |
Lambda in which the |
buildIntObjectMap
inline fun <V : Any?> buildIntObjectMap(initialCapacity: Int, builderAction: MutableIntObjectMap<V>.() -> Unit): IntObjectMap<V>
Builds a new IntObjectMap by populating a MutableIntObjectMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableIntObjectMap<V>.() -> Unit |
Lambda in which the |
buildIntSet
inline fun buildIntSet(builderAction: MutableIntSet.() -> Unit): IntSet
Builds a new IntSet by populating a MutableIntSet using the given builderAction.
The set passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableIntSet.() -> Unit |
Lambda in which the |
buildIntSet
inline fun buildIntSet(initialCapacity: Int, builderAction: MutableIntSet.() -> Unit): IntSet
Builds a new IntSet by populating a MutableIntSet using the given builderAction.
The set passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableIntSet.() -> Unit |
Lambda in which the |
buildLongFloatMap
inline fun buildLongFloatMap(builderAction: MutableLongFloatMap.() -> Unit): LongFloatMap
Builds a new LongFloatMap by populating a MutableLongFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableLongFloatMap.() -> Unit |
Lambda in which the |
buildLongFloatMap
inline fun buildLongFloatMap(initialCapacity: Int, builderAction: MutableLongFloatMap.() -> Unit): LongFloatMap
Builds a new LongFloatMap by populating a MutableLongFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableLongFloatMap.() -> Unit |
Lambda in which the |
buildLongIntMap
inline fun buildLongIntMap(builderAction: MutableLongIntMap.() -> Unit): LongIntMap
Builds a new LongIntMap by populating a MutableLongIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableLongIntMap.() -> Unit |
Lambda in which the |
buildLongIntMap
inline fun buildLongIntMap(initialCapacity: Int, builderAction: MutableLongIntMap.() -> Unit): LongIntMap
Builds a new LongIntMap by populating a MutableLongIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableLongIntMap.() -> Unit |
Lambda in which the |
buildLongList
inline fun buildLongList(builderAction: MutableLongList.() -> Unit): LongList
Builds a new LongList by populating a MutableLongList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableLongList.() -> Unit |
Lambda in which the |
buildLongList
inline fun buildLongList(initialCapacity: Int, builderAction: MutableLongList.() -> Unit): LongList
Builds a new LongList by populating a MutableLongList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableLongList.() -> Unit |
Lambda in which the |
buildLongLongMap
inline fun buildLongLongMap(builderAction: MutableLongLongMap.() -> Unit): LongLongMap
Builds a new LongLongMap by populating a MutableLongLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableLongLongMap.() -> Unit |
Lambda in which the |
buildLongLongMap
inline fun buildLongLongMap(initialCapacity: Int, builderAction: MutableLongLongMap.() -> Unit): LongLongMap
Builds a new LongLongMap by populating a MutableLongLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableLongLongMap.() -> Unit |
Lambda in which the |
buildLongObjectMap
inline fun <V : Any?> buildLongObjectMap(builderAction: MutableLongObjectMap<V>.() -> Unit): LongObjectMap<V>
Builds a new LongObjectMap by populating a MutableLongObjectMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableLongObjectMap<V>.() -> Unit |
Lambda in which the |
buildLongObjectMap
inline fun <V : Any?> buildLongObjectMap(initialCapacity: Int, builderAction: MutableLongObjectMap<V>.() -> Unit): LongObjectMap<V>
Builds a new LongObjectMap by populating a MutableLongObjectMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableLongObjectMap<V>.() -> Unit |
Lambda in which the |
buildLongSet
inline fun buildLongSet(builderAction: MutableLongSet.() -> Unit): LongSet
Builds a new LongSet by populating a MutableLongSet using the given builderAction.
The set passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableLongSet.() -> Unit |
Lambda in which the |
buildLongSet
inline fun buildLongSet(initialCapacity: Int, builderAction: MutableLongSet.() -> Unit): LongSet
Builds a new LongSet by populating a MutableLongSet using the given builderAction.
The set passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of elements added in the |
builderAction: MutableLongSet.() -> Unit |
Lambda in which the |
buildObjectFloatMap
inline fun <K : Any?> buildObjectFloatMap(builderAction: MutableObjectFloatMap<K>.() -> Unit): ObjectFloatMap<K>
Builds a new ObjectFloatMap by populating a MutableObjectFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableObjectFloatMap<K>.() -> Unit |
Lambda in which the |
buildObjectFloatMap
inline fun <K : Any?> buildObjectFloatMap(initialCapacity: Int, builderAction: MutableObjectFloatMap<K>.() -> Unit): ObjectFloatMap<K>
Builds a new ObjectFloatMap by populating a MutableObjectFloatMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableObjectFloatMap<K>.() -> Unit |
Lambda in which the |
buildObjectIntMap
inline fun <K : Any?> buildObjectIntMap(builderAction: MutableObjectIntMap<K>.() -> Unit): ObjectIntMap<K>
Builds a new ObjectIntMap by populating a MutableObjectIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableObjectIntMap<K>.() -> Unit |
Lambda in which the |
buildObjectIntMap
inline fun <K : Any?> buildObjectIntMap(initialCapacity: Int, builderAction: MutableObjectIntMap<K>.() -> Unit): ObjectIntMap<K>
Builds a new ObjectIntMap by populating a MutableObjectIntMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableObjectIntMap<K>.() -> Unit |
Lambda in which the |
buildObjectLongMap
inline fun <K : Any?> buildObjectLongMap(builderAction: MutableObjectLongMap<K>.() -> Unit): ObjectLongMap<K>
Builds a new ObjectLongMap by populating a MutableObjectLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
builderAction: MutableObjectLongMap<K>.() -> Unit |
Lambda in which the |
buildObjectLongMap
inline fun <K : Any?> buildObjectLongMap(initialCapacity: Int, builderAction: MutableObjectLongMap<K>.() -> Unit): ObjectLongMap<K>
Builds a new ObjectLongMap by populating a MutableObjectLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
initialCapacity: Int |
Hint for the expected number of pairs added in the |
builderAction: MutableObjectLongMap<K>.() -> Unit |
Lambda in which the |
doubleListOf
fun doubleListOf(): DoubleList
| Returns | |
|---|---|
DoubleList |
a read-only |
doubleListOf
fun doubleListOf(element1: Double): DoubleList
| Returns | |
|---|---|
DoubleList |
a new read-only |
doubleListOf
fun doubleListOf(vararg elements: Double): DoubleList
| Returns | |
|---|---|
DoubleList |
a new read-only |
doubleListOf
fun doubleListOf(element1: Double, element2: Double): DoubleList
| Returns | |
|---|---|
DoubleList |
a new read-only |
doubleListOf
fun doubleListOf(element1: Double, element2: Double, element3: Double): DoubleList
| Returns | |
|---|---|
DoubleList |
a new read-only |
emptyDoubleList
fun emptyDoubleList(): DoubleList
| Returns | |
|---|---|
DoubleList |
a read-only |
emptyFloatFloatMap
fun emptyFloatFloatMap(): FloatFloatMap
Returns an empty, read-only FloatFloatMap.
emptyFloatObjectMap
fun <V : Any?> emptyFloatObjectMap(): FloatObjectMap<V>
Returns an empty, read-only FloatObjectMap.
emptyIntObjectMap
fun <V : Any?> emptyIntObjectMap(): IntObjectMap<V>
Returns an empty, read-only IntObjectMap.
emptyLongObjectMap
fun <V : Any?> emptyLongObjectMap(): LongObjectMap<V>
Returns an empty, read-only LongObjectMap.
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 |
emptyObjectLongMap
fun <K : Any?> emptyObjectLongMap(): ObjectLongMap<K>
Returns an empty, read-only ObjectLongMap.
emptyOrderedScatterSet
fun <E : Any?> emptyOrderedScatterSet(): OrderedScatterSet<E>
Returns an empty, read-only OrderedScatterSet.
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(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(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.
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(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(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(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.
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(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(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(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.
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(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 |
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. |
| See also | |
|---|---|
sizeOf |
|
create |
|
entryRemoved |
mutableDoubleListOf
inline fun mutableDoubleListOf(): MutableDoubleList
| Returns | |
|---|---|
MutableDoubleList |
a new empty |
mutableDoubleListOf
fun mutableDoubleListOf(element1: Double): MutableDoubleList
| Returns | |
|---|---|
MutableDoubleList |
a new |
mutableDoubleListOf
inline fun mutableDoubleListOf(vararg elements: Double): MutableDoubleList
| Returns | |
|---|---|
MutableDoubleList |
a new |
mutableDoubleListOf
fun mutableDoubleListOf(element1: Double, element2: Double): MutableDoubleList
| Returns | |
|---|---|
MutableDoubleList |
a new |
mutableDoubleListOf
fun mutableDoubleListOf(element1: Double, element2: Double, element3: Double): MutableDoubleList
| Returns | |
|---|---|
MutableDoubleList |
a new |
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 |
mutableFloatListOf
fun mutableFloatListOf(element1: Float): MutableFloatList
| Returns | |
|---|---|
MutableFloatList |
a new |
mutableFloatListOf
inline fun mutableFloatListOf(vararg elements: Float): MutableFloatList
| Returns | |
|---|---|
MutableFloatList |
a new |
mutableFloatListOf
fun mutableFloatListOf(element1: Float, element2: Float): MutableFloatList
| Returns | |
|---|---|
MutableFloatList |
a new |
mutableFloatListOf
fun mutableFloatListOf(element1: Float, element2: Float, element3: Float): MutableFloatList
| Returns | |
|---|---|
MutableFloatList |
a new |
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(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(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 |
mutableIntListOf
fun mutableIntListOf(element1: Int): MutableIntList
| Returns | |
|---|---|
MutableIntList |
a new |
mutableIntListOf
inline fun mutableIntListOf(vararg elements: Int): MutableIntList
| Returns | |
|---|---|
MutableIntList |
a new |
mutableIntListOf
fun mutableIntListOf(element1: Int, element2: Int): MutableIntList
| Returns | |
|---|---|
MutableIntList |
a new |
mutableIntListOf
fun mutableIntListOf(element1: Int, element2: Int, element3: Int): MutableIntList
| Returns | |
|---|---|
MutableIntList |
a new |
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(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(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 |
mutableLongListOf
fun mutableLongListOf(element1: Long): MutableLongList
| Returns | |
|---|---|
MutableLongList |
a new |
mutableLongListOf
inline fun mutableLongListOf(vararg elements: Long): MutableLongList
| Returns | |
|---|---|
MutableLongList |
a new |
mutableLongListOf
fun mutableLongListOf(element1: Long, element2: Long): MutableLongList
| Returns | |
|---|---|
MutableLongList |
a new |
mutableLongListOf
fun mutableLongListOf(element1: Long, element2: Long, element3: Long): MutableLongList
| Returns | |
|---|---|
MutableLongList |
a new |
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(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 |
mutableObjectListOf
fun <E : Any?> mutableObjectListOf(element1: E): MutableObjectList<E>
| Returns | |
|---|---|
MutableObjectList<E> |
a new |
mutableObjectListOf
inline fun <E : Any?> mutableObjectListOf(vararg elements: E): MutableObjectList<E>
| Returns | |
|---|---|
MutableObjectList<E> |
a new |
mutableObjectListOf
fun <E : Any?> mutableObjectListOf(element1: E, element2: E): MutableObjectList<E>
| Returns | |
|---|---|
MutableObjectList<E> |
a new |
mutableObjectListOf
fun <E : Any?> mutableObjectListOf(element1: E, element2: E, element3: E): MutableObjectList<E>
| Returns | |
|---|---|
MutableObjectList<E> |
a new |
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.
mutableOrderedScatterSetOf
fun <E : Any?> mutableOrderedScatterSetOf(): MutableOrderedScatterSet<E>
Returns a new MutableOrderedScatterSet.
mutableOrderedScatterSetOf
fun <E : Any?> mutableOrderedScatterSetOf(element1: E): MutableOrderedScatterSet<E>
Returns a new MutableOrderedScatterSet with only element1 in it.
mutableOrderedScatterSetOf
fun <E : Any?> mutableOrderedScatterSetOf(vararg elements: E): MutableOrderedScatterSet<E>
Returns a new MutableOrderedScatterSet with the specified contents.
mutableOrderedScatterSetOf
fun <E : Any?> mutableOrderedScatterSetOf(element1: E, element2: E): MutableOrderedScatterSet<E>
Returns a new MutableOrderedScatterSet with only element1 and element2 in it.
mutableOrderedScatterSetOf
fun <E : Any?> mutableOrderedScatterSetOf(element1: E, element2: E, element3: E): MutableOrderedScatterSet<E>
Returns a new MutableOrderedScatterSet with only element1, element2, and element3 in it.
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 |
objectListOf
fun <E : Any?> objectListOf(element1: E): ObjectList<E>
| Returns | |
|---|---|
ObjectList<E> |
a new read-only |
objectListOf
fun <E : Any?> objectListOf(vararg elements: E): ObjectList<E>
| Returns | |
|---|---|
ObjectList<E> |
a new read-only |
objectListOf
fun <E : Any?> objectListOf(element1: E, element2: E): ObjectList<E>
| Returns | |
|---|---|
ObjectList<E> |
a new read-only |
objectListOf
fun <E : Any?> objectListOf(element1: E, element2: E, element3: E): ObjectList<E>
| Returns | |
|---|---|
ObjectList<E> |
a new read-only |
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.
orderedScatterSetOf
fun <E : Any?> orderedScatterSetOf(): OrderedScatterSet<E>
Returns an empty, read-only OrderedScatterSet.
orderedScatterSetOf
fun <E : Any?> orderedScatterSetOf(element1: E): OrderedScatterSet<E>
Returns a new read-only OrderedScatterSet with only element1 in it.
orderedScatterSetOf
fun <E : Any?> orderedScatterSetOf(vararg elements: E): OrderedScatterSet<E>
Returns a new read-only OrderedScatterSet with only elements in it.
orderedScatterSetOf
fun <E : Any?> orderedScatterSetOf(element1: E, element2: E): OrderedScatterSet<E>
Returns a new read-only OrderedScatterSet with only element1 and element2 in it.
orderedScatterSetOf
fun <E : Any?> orderedScatterSetOf(element1: E, element2: E, element3: E): OrderedScatterSet<E>
Returns a new read-only OrderedScatterSet with only element1, element2, and element3 in it.
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.