# MutableIntIntMap

# MutableIntIntMap

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection)  
[View Source](https://cs.android.com/search?q=file:androidx/collection/IntIntMap.kt+class:androidx.collection.MutableIntIntMap)  
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/MutableIntIntMap "View this page in Java")
Common/AllAndroid/JVMNative/C/iOSJavaScript
  - Cmn  

  ```
  class MutableIntIntMap : IntIntMap
```  

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

*** ** * ** ***

[MutableIntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap) is a container with a [MutableMap](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)-like interface for [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) primitive keys and [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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                                                                                                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [MutableIntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#MutableIntIntMap(kotlin.Int))`(initialCapacity: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates a new [MutableIntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap) | Cmn |

|                                      ### Public functions                                       |
|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [clear](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#clear())`()` Removes all mappings from this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Cmn |
| `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)            | [getOrPut](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#getOrPut(kotlin.Int,kotlin.Function0))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, defaultValue: () `->` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the value to which the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#getOrPut(kotlin.Int,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/MutableIntIntMap#minusAssign(kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(kotlin.Int)) 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/MutableIntIntMap#minusAssign(kotlin.IntArray))`(keys: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Removes the specified [keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(kotlin.IntArray)) 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/MutableIntIntMap#minusAssign(androidx.collection.IntList))`(keys: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Removes the specified [keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(androidx.collection.IntList)) 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/MutableIntIntMap#minusAssign(androidx.collection.IntSet))`(keys: `[IntSet](https://developer.android.com/reference/kotlin/androidx/collection/IntSet)`)` Removes the specified [keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(androidx.collection.IntSet)) 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/MutableIntIntMap#plusAssign(androidx.collection.IntIntMap))`(from: `[IntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap)`)` Puts all the key/value mappings in the [from](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#plusAssign(androidx.collection.IntIntMap)) 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/MutableIntIntMap#put(kotlin.Int,kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates a new mapping from [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int)) to [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int)) in this map.                                                                                                                          | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [put](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, default: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates a new mapping from [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) to [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) 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/MutableIntIntMap#putAll(androidx.collection.IntIntMap))`(from: `[IntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap)`)` Puts all the key/value mappings in the [from](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#putAll(androidx.collection.IntIntMap)) 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/MutableIntIntMap#remove(kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#remove(kotlin.Int)) 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/MutableIntIntMap#remove(kotlin.Int,kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#remove(kotlin.Int,kotlin.Int)) and its associated value from the map if the associated value equals [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#remove(kotlin.Int,kotlin.Int)).                                                             | Cmn |
| `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)          | [removeIf](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#removeIf(kotlin.Function2))`(predicate: (`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/MutableIntIntMap#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/MutableIntIntMap#set(kotlin.Int,kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates a new mapping from [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#set(kotlin.Int,kotlin.Int)) to [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#set(kotlin.Int,kotlin.Int)) 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/MutableIntIntMap#trim())`()` Trims this [MutableIntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap)'s storage so it is sized appropriately to hold the current mappings.                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From [androidx.collection.IntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap) |-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)          | [all](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#all(kotlin.Function2))`(predicate: (`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#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/IntIntMap#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/IntIntMap#any(kotlin.Function2))`(predicate: (`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#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/IntIntMap#contains(kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns true if the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#contains(kotlin.Int)) 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/IntIntMap#containsKey(kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns true if the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#containsKey(kotlin.Int)) 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/IntIntMap#containsValue(kotlin.Int))`(value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns true if the specified [value](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#containsValue(kotlin.Int)) 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/IntIntMap#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/IntIntMap#count(kotlin.Function2))`(predicate: (`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#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/IntIntMap#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/IntIntMap#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/IntIntMap#forEach(kotlin.Function2))`(block: (key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#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/IntIntMap#forEachKey(kotlin.Function1))`(block: (key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#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/IntIntMap#forEachValue(kotlin.Function1))`(block: (value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#forEachValue(kotlin.Function1)) lambda.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn | | `operator `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [get](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#get(kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the value corresponding to the given [key](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#get(kotlin.Int)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                           | [getOrDefault](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#getOrDefault(kotlin.Int,kotlin.Int))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, defaultValue: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the value to which the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#getOrDefault(kotlin.Int,kotlin.Int)) is mapped, or [defaultValue](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#getOrDefault(kotlin.Int,kotlin.Int)) if this map contains no mapping for the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [getOrElse](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#getOrElse(kotlin.Int,kotlin.Function0))`(key: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, defaultValue: () `->` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the value for the given [key](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#getOrElse(kotlin.Int,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/IntIntMap#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/IntIntMap#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/IntIntMap#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/IntIntMap#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/IntIntMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence)) and using [prefix](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence)) before and [postfix](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#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/IntIntMap#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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/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/IntIntMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function2)) and using [prefix](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function2)) before and [postfix](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#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/IntIntMap#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/IntIntMap#toString())`()` Returns a string representation of this map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From [androidx.collection.IntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap) |-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [capacity](https://developer.android.com/reference/kotlin/androidx/collection/IntIntMap#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/IntIntMap#size()) Returns the number of key-value pairs in this map.                                                                            | Cmn | |

## Public constructors

### MutableIntIntMap

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

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

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

|                                                        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: Int, defaultValue: () -> Int): Int
```

Returns the value to which the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#getOrPut(kotlin.Int,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/MutableIntIntMap#getOrPut(kotlin.Int,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: Int): Unit
```

Removes the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(kotlin.Int)) 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: IntArray): Unit
```

Removes the specified [keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(kotlin.IntArray)) 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: IntList): Unit
```

Removes the specified [keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(androidx.collection.IntList)) 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: IntSet): Unit
```

Removes the specified [keys](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#minusAssign(androidx.collection.IntSet)) 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: IntIntMap): Unit
```

Puts all the key/value mappings in the [from](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#plusAssign(androidx.collection.IntIntMap)) 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: Int, value: Int): Unit
```

Creates a new mapping from [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int)) to [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int)) in this map. If [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int)) 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/MutableIntIntMap#put(kotlin.Int,kotlin.Int)). If [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int)) 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/MutableIntIntMap#put(kotlin.Int,kotlin.Int)), 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: Int, value: Int, default: Int): Int
```

Creates a new mapping from [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) to [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) in this map. If [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) 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/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)). If [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) is not present, a new entry is added to the map, which may require to grow the underlying storage and cause allocations.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | value previously associated with [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) or [default](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#put(kotlin.Int,kotlin.Int,kotlin.Int)) 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: IntIntMap): Unit
```

Puts all the key/value mappings in the [from](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#putAll(androidx.collection.IntIntMap)) 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: Int): Unit
```

Removes the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#remove(kotlin.Int)) 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: Int, value: Int): Boolean
```

Removes the specified [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#remove(kotlin.Int,kotlin.Int)) and its associated value from the map if the associated value equals [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#remove(kotlin.Int,kotlin.Int)). 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: (Int, Int) -> Boolean): Unit
```

Removes any mapping for which the specified [predicate](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#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: Int, value: Int): Unit
```

Creates a new mapping from [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#set(kotlin.Int,kotlin.Int)) to [value](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#set(kotlin.Int,kotlin.Int)) in this map. If [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#set(kotlin.Int,kotlin.Int)) 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/MutableIntIntMap#set(kotlin.Int,kotlin.Int)). If [key](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap#set(kotlin.Int,kotlin.Int)) 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 [MutableIntIntMap](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntIntMap)'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.