# MutableIntList

# MutableIntList

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

  ```
  class MutableIntList : IntList
```  

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

*** ** * ** ***

[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)is a[MutableList](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)-like collection for[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList), which has a[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)-like interface.

This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a[forEach](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#forEach(kotlin.Function1)), for example. However, concurrent reads are safe.

## Summary

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

|                                      ### Public functions                                       |
|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [add](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Adds[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [add](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Adds[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int)), shifting over any elements at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int))and after, if any.                                                                                                    | Cmn |
| `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)    | [addAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.IntArray))`(elements: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.IntArray))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)was changed or`false`if[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.IntArray))was empty.                                                                                                                                                                                                                                                                                             | Cmn |
| `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)    | [addAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(androidx.collection.IntList))`(elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(androidx.collection.IntList))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)was changed or`false`if[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(androidx.collection.IntList))was empty.                                                                                                                                                                                                                                                          | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [addAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, elements: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray)), shifting over any elements at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))and after, if any.                                                | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [addAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList)), shifting over any elements at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))and after, if any. | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [clear](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#clear())`()` Removes all elements in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [ensureCapacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#ensureCapacity(kotlin.Int))`(capacity: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Ensures that there is enough space to store[capacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#ensureCapacity(kotlin.Int))elements in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` [remove](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(kotlin.Int))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn |
| `operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)        | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(kotlin.IntArray))`(elements: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(kotlin.IntArray))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn |
| `operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)        | [minusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(androidx.collection.IntList))`(elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(androidx.collection.IntList))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [plusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` [add](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(kotlin.Int))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [plusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(kotlin.IntArray))`(elements: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(kotlin.IntArray))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Cmn |
| `inline operator `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [plusAssign](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(androidx.collection.IntList))`(elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(androidx.collection.IntList))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [remove](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#remove(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#remove(kotlin.Int))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [removeAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAll(kotlin.IntArray))`(elements: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAll(kotlin.IntArray))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if anything was removed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [removeAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAll(androidx.collection.IntList))`(elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAll(androidx.collection.IntList))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if anything was removed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [removeAt](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAt(kotlin.Int))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes the element at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAt(kotlin.Int))and returns it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [removeRange](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))`(start: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, end: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes items from index[start](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))(inclusive) to[end](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))(exclusive).                                                                                                                                                                                                                    | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [retainAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#retainAll(kotlin.IntArray))`(elements: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Keeps only[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#retainAll(kotlin.IntArray))in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and removes all other values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [retainAll](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#retainAll(androidx.collection.IntList))`(elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Keeps only[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#retainAll(androidx.collection.IntList))in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and removes all other values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Cmn |
| `operator `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [set](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the value at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int))to[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int)).                                                                                                                                                                                                                                                                                                                                                                               | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [sort](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#sort())`()` Sorts the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)elements in ascending order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [sortDescending](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#sortDescending())`()` Sorts the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)elements in descending order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [trim](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#trim(kotlin.Int))`(minCapacity: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Reduces the internal storage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn |

|                            ### Public properties                            |
|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [capacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#capacity()) Returns the total number of elements that can be held before the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)must grow. | Cmn |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.collection.IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList) |-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [any](https://developer.android.com/reference/kotlin/androidx/collection/IntList#any())`()` Returns`true`if there's at least one element in the collection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [any](https://developer.android.com/reference/kotlin/androidx/collection/IntList#any(kotlin.Function1))`(predicate: (element: `[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 any of the elements give a`true`return value for[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#any(kotlin.Function1)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [binarySearch](https://developer.android.com/reference/kotlin/androidx/collection/IntList#binarySearch(kotlin.Int,kotlin.Int,kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, fromIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, toIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Searches this list the specified element in the range defined by[fromIndex](https://developer.android.com/reference/kotlin/androidx/collection/IntList#binarySearch(kotlin.Int,kotlin.Int,kotlin.Int))and[toIndex](https://developer.android.com/reference/kotlin/androidx/collection/IntList#binarySearch(kotlin.Int,kotlin.Int,kotlin.Int)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Cmn | | `operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)      | [contains](https://developer.android.com/reference/kotlin/androidx/collection/IntList#contains(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns`true`if the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)contains[element](https://developer.android.com/reference/kotlin/androidx/collection/IntList#contains(kotlin.Int))or`false`otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Cmn | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                 | [containsAll](https://developer.android.com/reference/kotlin/androidx/collection/IntList#containsAll(androidx.collection.IntList))`(elements: `[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)`)` Returns`true`if the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)contains all elements in[elements](https://developer.android.com/reference/kotlin/androidx/collection/IntList#containsAll(androidx.collection.IntList))or`false`if one or more are missing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [count](https://developer.android.com/reference/kotlin/androidx/collection/IntList#count())`()` Returns the number of elements in this list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [count](https://developer.android.com/reference/kotlin/androidx/collection/IntList#count(kotlin.Function1))`(predicate: (element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Counts the number of elements matching[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#count(kotlin.Function1)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [elementAt](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAt(kotlin.Int))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the element at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAt(kotlin.Int))or throws[IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html)if the[index](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAt(kotlin.Int))is out of bounds of this collection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [elementAtOrElse](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAtOrElse(kotlin.Int,kotlin.Function1))`(` ` index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` defaultValue: (index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` Returns the element at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAtOrElse(kotlin.Int,kotlin.Function1))or[defaultValue](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAtOrElse(kotlin.Int,kotlin.Function1))if[index](https://developer.android.com/reference/kotlin/androidx/collection/IntList#elementAtOrElse(kotlin.Int,kotlin.Function1))is out of bounds of the collection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Cmn | | `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/collection/IntList#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Returns`true`if[other](https://developer.android.com/reference/kotlin/androidx/collection/IntList#equals(kotlin.Any))is a[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)and the contents of this and[other](https://developer.android.com/reference/kotlin/androidx/collection/IntList#equals(kotlin.Any))are the same.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [first](https://developer.android.com/reference/kotlin/androidx/collection/IntList#first())`()` Returns the first element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)or throws a[NoSuchElementException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-no-such-element-exception/index.html)if it[isEmpty](https://developer.android.com/reference/kotlin/androidx/collection/IntList#isEmpty()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [first](https://developer.android.com/reference/kotlin/androidx/collection/IntList#first(kotlin.Function1))`(predicate: (element: `[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 first element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)for which[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#first(kotlin.Function1))returns`true`or throws[NoSuchElementException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-no-such-element-exception/index.html)if nothing matches.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn | | `inline R`                                                                                          | `<R : `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?> `[fold](https://developer.android.com/reference/kotlin/androidx/collection/IntList#fold(kotlin.Any,kotlin.Function2))`(initial: R, operation: (acc, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` R)` Accumulates values, starting with[initial](https://developer.android.com/reference/kotlin/androidx/collection/IntList#fold(kotlin.Any,kotlin.Function2)), and applying[operation](https://developer.android.com/reference/kotlin/androidx/collection/IntList#fold(kotlin.Any,kotlin.Function2))to each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)in order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Cmn | | `inline R`                                                                                          | `<R : `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?> `[foldIndexed](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldIndexed(kotlin.Any,kotlin.Function3))`(initial: R, operation: (index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, acc, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` R)` Accumulates values, starting with[initial](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldIndexed(kotlin.Any,kotlin.Function3)), and applying[operation](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldIndexed(kotlin.Any,kotlin.Function3))to each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)in order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn | | `inline R`                                                                                          | `<R : `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?> `[foldRight](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldRight(kotlin.Any,kotlin.Function2))`(initial: R, operation: (element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, acc) `->` R)` Accumulates values, starting with[initial](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldRight(kotlin.Any,kotlin.Function2)), and applying[operation](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldRight(kotlin.Any,kotlin.Function2))to each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)in reverse order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Cmn | | `inline R`                                                                                          | `<R : `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?> `[foldRightIndexed](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldRightIndexed(kotlin.Any,kotlin.Function3))`(` ` initial: R,` ` operation: (index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, acc) `->` R` `)` Accumulates values, starting with[initial](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldRightIndexed(kotlin.Any,kotlin.Function3)), and applying[operation](https://developer.android.com/reference/kotlin/androidx/collection/IntList#foldRightIndexed(kotlin.Any,kotlin.Function3))to each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)in reverse order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)              | [forEach](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEach(kotlin.Function1))`(block: (element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Calls[block](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEach(kotlin.Function1))for each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList), in order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)              | [forEachIndexed](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEachIndexed(kotlin.Function2))`(block: (index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Calls[block](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEachIndexed(kotlin.Function2))for each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)along with its index, in order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)              | [forEachReversed](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEachReversed(kotlin.Function1))`(block: (element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Calls[block](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEachReversed(kotlin.Function1))for each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)in reverse order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn | | `inline `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)              | [forEachReversedIndexed](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEachReversedIndexed(kotlin.Function2))`(block: (index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`) `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` Calls[block](https://developer.android.com/reference/kotlin/androidx/collection/IntList#forEachReversedIndexed(kotlin.Function2))for each element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)along with its index, in reverse order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn | | `operator `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)              | [get](https://developer.android.com/reference/kotlin/androidx/collection/IntList#get(kotlin.Int))`(index: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the element at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/IntList#get(kotlin.Int))or throws[IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html)if the[index](https://developer.android.com/reference/kotlin/androidx/collection/IntList#get(kotlin.Int))is out of bounds of this collection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Cmn | | `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/collection/IntList#hashCode())`()` Returns a hash code based on the contents of the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [indexOf](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOf(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the index of[element](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOf(kotlin.Int))in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)or`-1`if[element](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOf(kotlin.Int))is not there.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [indexOfFirst](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOfFirst(kotlin.Function1))`(predicate: (element: `[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 index if the first element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)for which[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOfFirst(kotlin.Function1))returns`true`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [indexOfLast](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOfLast(kotlin.Function1))`(predicate: (element: `[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 index if the last element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)for which[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indexOfLast(kotlin.Function1))returns`true`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Cmn | | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [isEmpty](https://developer.android.com/reference/kotlin/androidx/collection/IntList#isEmpty())`()` Returns`true`if the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)has no elements in it or`false`otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Cmn | | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [isNotEmpty](https://developer.android.com/reference/kotlin/androidx/collection/IntList#isNotEmpty())`()` Returns`true`if there are elements in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)or`false`if it is empty.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Cmn | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                   | [joinToString](https://developer.android.com/reference/kotlin/androidx/collection/IntList#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 elements separated by[separator](https://developer.android.com/reference/kotlin/androidx/collection/IntList#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence))and using[prefix](https://developer.android.com/reference/kotlin/androidx/collection/IntList#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence))before and[postfix](https://developer.android.com/reference/kotlin/androidx/collection/IntList#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/IntList#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1))`(` ` 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: (`[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 elements separated by[separator](https://developer.android.com/reference/kotlin/androidx/collection/IntList#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1))and using[prefix](https://developer.android.com/reference/kotlin/androidx/collection/IntList#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1))before and[postfix](https://developer.android.com/reference/kotlin/androidx/collection/IntList#joinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1))after, if supplied. | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [last](https://developer.android.com/reference/kotlin/androidx/collection/IntList#last())`()` Returns the last element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)or throws a[NoSuchElementException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-no-such-element-exception/index.html)if it[isEmpty](https://developer.android.com/reference/kotlin/androidx/collection/IntList#isEmpty()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Cmn | | `inline `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [last](https://developer.android.com/reference/kotlin/androidx/collection/IntList#last(kotlin.Function1))`(predicate: (element: `[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 last element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)for which[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#last(kotlin.Function1))returns`true`or throws[NoSuchElementException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-no-such-element-exception/index.html)if nothing matches.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                         | [lastIndexOf](https://developer.android.com/reference/kotlin/androidx/collection/IntList#lastIndexOf(kotlin.Int))`(element: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the index of the last element in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList)that is the same as[element](https://developer.android.com/reference/kotlin/androidx/collection/IntList#lastIndexOf(kotlin.Int))or`-1`if no elements match.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn | | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [none](https://developer.android.com/reference/kotlin/androidx/collection/IntList#none())`()` Returns`true`if the collection has no elements in it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Cmn | | `inline `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [reversedAny](https://developer.android.com/reference/kotlin/androidx/collection/IntList#reversedAny(kotlin.Function1))`(predicate: (element: `[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 any of the elements give a`true`return value for[predicate](https://developer.android.com/reference/kotlin/androidx/collection/IntList#reversedAny(kotlin.Function1))while iterating in the reverse order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Cmn | | `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/collection/IntList#toString())`()` Returns a String representation of the list, surrounded by "\[\]" and each element separated by ", ".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Cmn | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.collection.IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList) |-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | [IntRange](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-int-range/index.html) | [indices](https://developer.android.com/reference/kotlin/androidx/collection/IntList#indices()) Returns an[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)of the valid indices for this[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList). | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                   | [lastIndex](https://developer.android.com/reference/kotlin/androidx/collection/IntList#lastIndex()) Returns the last valid index in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList).                                                                                        | Cmn | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                   | [size](https://developer.android.com/reference/kotlin/androidx/collection/IntList#size()) The number of elements in the[IntList](https://developer.android.com/reference/kotlin/androidx/collection/IntList).                                                                                                        | Cmn | |

## Public constructors

### MutableIntList

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

```
MutableIntList(initialCapacity: Int = 16)
```

Creates a[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)with a[capacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#capacity())of`initialCapacity`.

## Public functions

### add

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

```
fun add(element: Int): Boolean
```

Adds[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`.  

### add

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

```
fun add(index: @IntRange(from = 0) Int, element: Int): Unit
```

Adds[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int)), shifting over any elements at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int))and after, if any.  

|                                                               Throws                                                               |
|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html) | if[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#add(kotlin.Int,kotlin.Int))isn't between 0 and[size](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#size()), inclusive |

### addAll

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

```
inline fun addAll(elements: IntArray): Boolean
```

Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.IntArray))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)was changed or`false`if[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.IntArray))was empty.  

### addAll

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

```
inline fun addAll(elements: IntList): Boolean
```

Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(androidx.collection.IntList))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)was changed or`false`if[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(androidx.collection.IntList))was empty.  

### addAll

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

```
fun addAll(index: @IntRange(from = 0) Int, elements: IntArray): Boolean
```

Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray)), shifting over any elements at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))and after, if any.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)was changed or`false`if[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))was empty |

|                                                               Throws                                                               |
|------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html) | if[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,kotlin.IntArray))isn't between 0 and[size](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#size()), inclusive. |

### addAll

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

```
fun addAll(index: @IntRange(from = 0) Int, elements: IntList): Boolean
```

Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList)), shifting over any elements at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))and after, if any.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)was changed or`false`if[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))was empty |

|                                                               Throws                                                               |
|------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html) | if[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#addAll(kotlin.Int,androidx.collection.IntList))isn't between 0 and[size](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#size()), inclusive |

### clear

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

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

Removes all elements in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList). The storage isn't released.  

|                                                  See also                                                  |
|------------------------------------------------------------------------------------------------------------|---|
| [trim](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#trim(kotlin.Int)) |   |

### ensureCapacity

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

```
fun ensureCapacity(capacity: Int): Unit
```

Ensures that there is enough space to store[capacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#ensureCapacity(kotlin.Int))elements in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).  

|                                                  See also                                                  |
|------------------------------------------------------------------------------------------------------------|---|
| [trim](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#trim(kotlin.Int)) |   |

### minusAssign

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

```
inline operator fun minusAssign(element: Int): Unit
```

[remove](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(kotlin.Int))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)  

### minusAssign

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

```
operator fun minusAssign(elements: IntArray): Unit
```

Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(kotlin.IntArray))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).  

### minusAssign

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

```
operator fun minusAssign(elements: IntList): Unit
```

Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#minusAssign(androidx.collection.IntList))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).  

### plusAssign

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

```
inline operator fun plusAssign(element: Int): Unit
```

[add](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(kotlin.Int))to the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).  

### plusAssign

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

```
inline operator fun plusAssign(elements: IntArray): Unit
```

Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(kotlin.IntArray))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).  

### plusAssign

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

```
inline operator fun plusAssign(elements: IntList): Unit
```

Adds all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#plusAssign(androidx.collection.IntList))to the end of the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList).  

### remove

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

```
fun remove(element: Int): Boolean
```

Removes[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#remove(kotlin.Int))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList). If[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#remove(kotlin.Int))was in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and was removed,`true`will be returned, or`false`will be returned if the element was not found.  

### removeAll

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

```
fun removeAll(elements: IntArray): Boolean
```

Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAll(kotlin.IntArray))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if anything was removed.  

### removeAll

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

```
fun removeAll(elements: IntList): Boolean
```

Removes all[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAll(androidx.collection.IntList))from the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and returns`true`if anything was removed.  

### removeAt

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

```
fun removeAt(index: @IntRange(from = 0) Int): Int
```

Removes the element at the given[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAt(kotlin.Int))and returns it.  

|                                                               Throws                                                               |
|------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html) | if[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeAt(kotlin.Int))isn't between 0 and[lastIndex](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#lastIndex()), inclusive |

### removeRange

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

```
fun removeRange(start: @IntRange(from = 0) Int, end: @IntRange(from = 0) Int): Unit
```

Removes items from index[start](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))(inclusive) to[end](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))(exclusive).  

|                                                               Throws                                                               |
|------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html) | if[start](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))or[end](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))isn't between 0 and[size](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#size()), inclusive |
| [kotlin.IllegalArgumentException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html)     | if[start](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))is greater than[end](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#removeRange(kotlin.Int,kotlin.Int))                                                                                                                  |

### retainAll

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

```
fun retainAll(elements: IntArray): Boolean
```

Keeps only[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#retainAll(kotlin.IntArray))in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and removes all other values.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)has changed. |

### retainAll

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

```
fun retainAll(elements: IntList): Boolean
```

Keeps only[elements](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#retainAll(androidx.collection.IntList))in the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)and removes all other values.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)has changed. |

### set

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

```
operator fun set(index: @IntRange(from = 0) Int, element: Int): Int
```

Sets the value at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int))to[element](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int)).  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the previous value set at[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int)) |

|                                                               Throws                                                               |
|------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.IndexOutOfBoundsException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-index-out-of-bounds-exception/index.html) | if[index](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#set(kotlin.Int,kotlin.Int))isn't between 0 and[lastIndex](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#lastIndex()), inclusive |

### sort

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

```
fun sort(): Unit
```

Sorts the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)elements in ascending order.  

### sortDescending

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

```
fun sortDescending(): Unit
```

Sorts the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)elements in descending order.  

### trim

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

```
fun trim(minCapacity: Int = _size): Unit
```

Reduces the internal storage. If[capacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#capacity())is greater than[minCapacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#trim(kotlin.Int))and[size](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#size()), the internal storage is reduced to the maximum of[size](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#size())and[minCapacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#trim(kotlin.Int)).  

|                                                            See also                                                            |
|--------------------------------------------------------------------------------------------------------------------------------|---|
| [ensureCapacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#ensureCapacity(kotlin.Int)) |   |

## Public properties

### capacity

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

```
val capacity: Int
```

Returns the total number of elements that can be held before the[MutableIntList](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList)must grow.  

|                                                            See also                                                            |
|--------------------------------------------------------------------------------------------------------------------------------|---|
| [ensureCapacity](https://developer.android.com/reference/kotlin/androidx/collection/MutableIntList#ensureCapacity(kotlin.Int)) |   |