# MutableLongFloatMap

# MutableLongFloatMap

Artifact:[androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection)  
[View Source](https://cs.android.com/search?q=file:androidx/collection/LongFloatMap.kt+class:androidx.collection.MutableLongFloatMap)  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/collection/MutableLongFloatMap "View this page in Java")
Common/AllAndroid/JVMNative/C/iOSJavaScript
  - Cmn  

  ```
  class MutableLongFloatMap : LongFloatMap
```  

|---|---|-----------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                      |||
| ↳ | [androidx.collection.LongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap)                  ||
|   | ↳ | [androidx.collection.MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap) |

*** ** * ** ***

[MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap)is a container with a[MutableMap](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)-like interface for[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)primitive keys and[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)primitive values.

The underlying implementation is designed to avoid allocations from boxing, and insertion, removal, retrieval, and iteration operations. Allocations may still happen on insertion when the underlying storage needs to grow to accommodate newly added entries to the table. In addition, this implementation minimizes memory usage by avoiding the use of separate objects to hold key/value pairs.

This implementation makes no guarantee as to the order of the keys and values stored, nor does it make guarantees that the order remains constant over time.

This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the map (insertion or removal for instance), the calling code must provide the appropriate synchronization. Multiple threads are safe to read from this map concurrently if no write is happening.  

|                                                 See also                                                  |
|-----------------------------------------------------------------------------------------------------------|---|
| [MutableScatterMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableScatterMap) |   |

## Summary

|                                                                                                                                                                          ### Public constructors                                                                                                                                                                           |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#MutableLongFloatMap(kotlin.Int))`(initialCapacity: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates a new[MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap) | Cmn |

|                                      ### Public functions                                       |
|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [clear](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#clear())`()` Removes all mappings from this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn |
| `inline `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)        | [getOrPut](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#getOrPut(kotlin.Long,kotlin.Function0))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, defaultValue: () `->` `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Returns the value to which the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#getOrPut(kotlin.Long,kotlin.Function0))is mapped, if the value is present in the map and not`null`.                                                                                                                                                               | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(kotlin.Long))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Removes the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(kotlin.Long))and its associated value from the map.                                                                                                                                                                                                                                                                                                                                          | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(kotlin.LongArray))`(keys: `[LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html)`)` Removes the specified[keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(kotlin.LongArray))and their associated value from the map.                                                                                                                                                                                                                                                                                                                 | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(androidx.collection.LongList))`(keys: `[LongList](https://developer.android.com/reference/kotlin/androidx/collection/LongList)`)` Removes the specified[keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(androidx.collection.LongList))and their associated value from the map.                                                                                                                                                                                                                                                                                          | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(androidx.collection.LongSet))`(keys: `[LongSet](https://developer.android.com/reference/kotlin/androidx/collection/LongSet)`)` Removes the specified[keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(androidx.collection.LongSet))and their associated value from the map.                                                                                                                                                                                                                                                                                              | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [plusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#plusAssign(androidx.collection.LongFloatMap))`(from: `[LongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap)`)` Puts all the key/value mappings in the[from](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#plusAssign(androidx.collection.LongFloatMap))map into this map.                                                                                                                                                                                                                                                                                  | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [put](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Creates a new mapping from[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))to[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))in this map.                                                                                                                                    | Cmn |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                 | [put](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, default: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Creates a new mapping from[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))to[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))in this map. | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [putAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#putAll(androidx.collection.LongFloatMap))`(from: `[LongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap)`)` Puts all the key/value mappings in the[from](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#putAll(androidx.collection.LongFloatMap))map into this map.                                                                                                                                                                                                                                                                                              | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [remove](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Removes the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long))and its associated value from the map.                                                                                                                                                                                                                                                                                                                                                         | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [remove](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long,kotlin.Float))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Removes the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long,kotlin.Float))and its associated value from the map if the associated value equals[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long,kotlin.Float)).                                                                      | Cmn |
| `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)          | [removeIf](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#removeIf(kotlin.Function2))`(predicate: (`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Removes any mapping for which the specified[predicate](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#removeIf(kotlin.Function2))returns true.                                                                                                                                                | Cmn |
| `operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)        | [set](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Creates a new mapping from[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))to[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))in this map.                                                                                                                                    | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [trim](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#trim())`()` Trims this[MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap)'s storage so it is sized appropriately to hold the current mappings.                                                                                                                                                                                                                                                                                                                                                                                                                                            | Cmn |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.collection.LongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap) |-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)          | [all](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#all(kotlin.Function2))`(predicate: (`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Returns true if all entries match the given[predicate](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#all(kotlin.Function2)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                   | [any](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#any())`()` Returns`true`if this map has at least one entry.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn | | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)          | [any](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#any(kotlin.Function2))`(predicate: (`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Returns true if at least one entry matches the given[predicate](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#any(kotlin.Function2)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Cmn | | `inline operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [contains](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#contains(kotlin.Long))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Returns true if the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#contains(kotlin.Long))is present in this map, false otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                   | [containsKey](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#containsKey(kotlin.Long))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Returns true if the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#containsKey(kotlin.Long))is present in this map, false otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                   | [containsValue](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#containsValue(kotlin.Float))`(value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Returns true if the specified[value](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#containsValue(kotlin.Float))is present in this map, false otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                           | [count](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#count())`()` Returns the number of entries in this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [count](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#count(kotlin.Function2))`(predicate: (`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Returns the number of entries matching the given[predicate](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#count(kotlin.Function2)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn | | `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)   | [equals](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Compares the specified object[other](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#equals(kotlin.Any))with this hash map for equality.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                | [forEach](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#forEach(kotlin.Function2))`(block: (key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Iterates over every key/value pair stored in this map by invoking the specified[block](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#forEach(kotlin.Function2))lambda.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                | [forEachKey](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#forEachKey(kotlin.Function1))`(block: (key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Iterates over every key stored in this map by invoking the specified[block](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#forEachKey(kotlin.Function1))lambda.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                | [forEachValue](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#forEachValue(kotlin.Function1))`(block: (value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Iterates over every value stored in this map by invoking the specified[block](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#forEachValue(kotlin.Function1))lambda.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn | | `operator `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)            | [get](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#get(kotlin.Long))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Returns the value corresponding to the given[key](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#get(kotlin.Long)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn | | [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                       | [getOrDefault](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#getOrDefault(kotlin.Long,kotlin.Float))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, defaultValue: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Returns the value to which the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#getOrDefault(kotlin.Long,kotlin.Float))is mapped, or[defaultValue](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#getOrDefault(kotlin.Long,kotlin.Float))if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn | | `inline `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)              | [getOrElse](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#getOrElse(kotlin.Long,kotlin.Function0))`(key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, defaultValue: () `->` `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Returns the value for the given[key](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#getOrElse(kotlin.Long,kotlin.Function0))if the value is present and not null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Cmn | | `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                    | [hashCode](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#hashCode())`()` Returns the hash code value for this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                   | [isEmpty](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#isEmpty())`()` Indicates whether this map is empty.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                   | [isNotEmpty](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#isNotEmpty())`()` Returns`true`if this map is not empty.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                     | [joinToString](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence))`(` ` separator: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` prefix: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` postfix: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` limit: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` truncated: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html) `)` Creates a String from the entries, separated by[separator](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence))and using[prefix](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence))before and[postfix](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence))after, if supplied.                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | | `inline `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [joinToString](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function2))`(` ` separator: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` prefix: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` postfix: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` limit: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` truncated: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`,` ` crossinline transform: (key: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, value: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`) `->` `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html) `)` Creates a String from the entries, separated by[separator](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function2))and using[prefix](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function2))before and[postfix](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function2))after, if supplied. | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                   | [none](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#none())`()` Returns`true`if this map has no entries.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Cmn | | `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)              | [toString](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#toString())`()` Returns a string representation of this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Cmn | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.collection.LongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap) |-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [capacity](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#capacity()) Returns the number of key-value pairs that can be stored in this map without requiring internal storage reallocation. | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [size](https://developer.android.com/reference/kotlin/androidx/collection/LongFloatMap#size()) Returns the number of key-value pairs in this map.                                                                            | Cmn | |

## Public constructors

### MutableLongFloatMap

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
MutableLongFloatMap(initialCapacity: Int = DefaultScatterCapacity)
```

Creates a new[MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap)  

|                                                        Parameters                                                         |
|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `initialCapacity: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` = DefaultScatterCapacity` | The initial desired capacity for this container. the container will honor this value by guaranteeing its internal structures can hold that many entries without requiring any allocations. The initial capacity can be set to 0. |

## Public functions

### clear

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun clear(): Unit
```

Removes all mappings from this map.  

### getOrPut

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline fun getOrPut(key: Long, defaultValue: () -> Float): Float
```

Returns the value to which the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#getOrPut(kotlin.Long,kotlin.Function0))is mapped, if the value is present in the map and not`null`. Otherwise, calls`defaultValue()`and puts the result in the map associated with[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#getOrPut(kotlin.Long,kotlin.Function0)).  

### minusAssign

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline operator fun minusAssign(key: Long): Unit
```

Removes the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(kotlin.Long))and its associated value from the map.  

### minusAssign

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline operator fun minusAssign(keys: LongArray): Unit
```

Removes the specified[keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(kotlin.LongArray))and their associated value from the map.  

### minusAssign

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline operator fun minusAssign(keys: LongList): Unit
```

Removes the specified[keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(androidx.collection.LongList))and their associated value from the map.  

### minusAssign

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline operator fun minusAssign(keys: LongSet): Unit
```

Removes the specified[keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#minusAssign(androidx.collection.LongSet))and their associated value from the map.  

### plusAssign

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline operator fun plusAssign(from: LongFloatMap): Unit
```

Puts all the key/value mappings in the[from](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#plusAssign(androidx.collection.LongFloatMap))map into this map.  

### put

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun put(key: Long, value: Float): Unit
```

Creates a new mapping from[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))to[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))in this map. If[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))is already present in the map, the association is modified and the previously associated value is replaced with[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float)). If[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float))is not present, a new entry is added to the map, which may require to grow the underlying storage and cause allocations. Return the previous value associated with the[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float)), or`null`if the key was not present in the map.  

### put

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun put(key: Long, value: Float, default: Float): Float
```

Creates a new mapping from[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))to[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))in this map. If[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))is already present in the map, the association is modified and the previously associated value is replaced with[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float)). If[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))is not present, a new entry is added to the map, which may require to grow the underlying storage and cause allocations.  

|                                     Returns                                     |
|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | value previously associated with[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))or[default](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#put(kotlin.Long,kotlin.Float,kotlin.Float))if key was not present. |

### putAll

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun putAll(from: LongFloatMap): Unit
```

Puts all the key/value mappings in the[from](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#putAll(androidx.collection.LongFloatMap))map into this map.  

### remove

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun remove(key: Long): Unit
```

Removes the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long))and its associated value from the map.  

### remove

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun remove(key: Long, value: Float): Boolean
```

Removes the specified[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long,kotlin.Float))and its associated value from the map if the associated value equals[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#remove(kotlin.Long,kotlin.Float)). Returns whether the removal happened.  

### removeIf

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
inline fun removeIf(predicate: (Long, Float) -> Boolean): Unit
```

Removes any mapping for which the specified[predicate](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#removeIf(kotlin.Function2))returns true.  

### set

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
operator fun set(key: Long, value: Float): Unit
```

Creates a new mapping from[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))to[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))in this map. If[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))is already present in the map, the association is modified and the previously associated value is replaced with[value](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float)). If[key](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap#set(kotlin.Long,kotlin.Float))is not present, a new entry is added to the map, which may require to grow the underlying storage and cause allocations.  

### trim

Cmn  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)  

```
fun trim(): Int
```

Trims this[MutableLongFloatMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableLongFloatMap)'s storage so it is sized appropriately to hold the current mappings.

Returns the number of empty entries removed from this map's storage. Returns be 0 if no trimming is necessary or possible.