# androidx.core.util

*** ** * ** ***

## Interfaces

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer` | Compat version of `https://developer.android.com/reference/java/util/function/Consumer.html` |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Function` | Compat version of `https://developer.android.com/reference/java/util/function/Function.html` |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Pools.Pool` | Interface for managing a pool of objects. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Predicate` | Compat version of `https://developer.android.com/reference/java/util/function/Predicate.html` |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Supplier` | Compat version of `https://developer.android.com/reference/java/util/function/Supplier.html` |

## Classes

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/util/AtomicFile` | Static library support version of the framework's `https://developer.android.com/reference/android/util/AtomicFile.html`, a helper class for performing atomic operations on a file by writing to a new file and renaming it into the place of the original file after the write has successfully completed. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/ObjectsCompat` | This class consists of static utility methods for operating on objects. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Pair` | Container to ease passing around a tuple of two objects. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/PatternsCompat` | Commonly used regular expression patterns. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Pools` | Helper class for creating pools of objects. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Pools.SimplePool` | Simple (non-synchronized) pool of objects. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Pools.SynchronizedPool` | Synchronized pool of objects. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat` | Immutable class for describing width and height dimensions in some arbitrary unit. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/TypedValueCompat` | Container for a dynamically typed data value. |

## Top-level functions summary

|---|---|
| `inline https://developer.android.com/reference/android/util/LruCache.html<K, V>` | `<K : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, V : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#lruCache(kotlin.Int,kotlin.Function2,kotlin.Function1,kotlin.Function4)( maxSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, crossinline sizeOf: (key, value) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, crossinline create: (key) -> V?, crossinline onEntryRemoved: (evicted: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, key, oldValue, newValue?) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Creates an `https://developer.android.com/reference/android/util/LruCache.html` with the given parameters. |

## Extension functions summary

|---|---|
| `inline infix https://developer.android.com/reference/android/util/Range.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<T>> https://developer.android.com/reference/android/util/Range.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).and(android.util.Range)(other: https://developer.android.com/reference/android/util/Range.html<T>)` Return the intersection of this range and `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).and(android.util.Range)`. |
| `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.coroutines.Continuation).asAndroidXConsumer()()` Returns a `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer` that will resume this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html` when the result of an operation is `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer#accept(kotlin.Any)`. |
| `https://developer.android.com/reference/java/util/function/Consumer.html<T>` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 24) <T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.coroutines.Continuation).asConsumer()()` Returns a `https://developer.android.com/reference/java/util/function/Consumer.html` that will resume this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html` when the result of an operation is `https://developer.android.com/reference/java/util/function/Consumer.html#accept(T)`. |
| `https://developer.android.com/reference/java/lang/Runnable.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.coroutines.Continuation).asRunnable()()` Returns a `https://developer.android.com/reference/java/lang/Runnable.html` that will resume this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html` when an operation completes and the returned `https://developer.android.com/reference/java/lang/Runnable.html`'s `https://developer.android.com/reference/java/lang/Runnable.html#run()` method is called. |
| `inline operator F` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/core/util/Pair<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(androidx.core.util.Pair).component1()()` Returns the first component of the pair. |
| `inline operator F` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/Pair.html<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Pair).component1()()` Returns the first component of the pair. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/Size.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Size).component1()()` Returns "width", the first component of this `https://developer.android.com/reference/android/util/Size.html`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/util/SizeF.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SizeF).component1()()` Returns "width", the first component of this `https://developer.android.com/reference/android/util/SizeF.html`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(androidx.core.util.SizeFCompat).component1()()` Returns "width", the first component of this `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat`. |
| `inline operator S` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/core/util/Pair<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(androidx.core.util.Pair).component2()()` Returns the second component of the pair. |
| `inline operator S` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/Pair.html<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Pair).component2()()` Returns the second component of the pair. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/Size.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Size).component2()()` Returns "height", the second component of this `https://developer.android.com/reference/android/util/Size.html`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/util/SizeF.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SizeF).component2()()` Returns "height", the second component of this `https://developer.android.com/reference/android/util/SizeF.html`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(androidx.core.util.SizeFCompat).component2()()` Returns "height", the second component of this `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).contains(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).contains(kotlin.Int)`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).contains(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).contains(kotlin.Int)`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).contains(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).contains(kotlin.Int)`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).contains(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).contains(kotlin.Int)`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).contains(kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).contains(kotlin.Long)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).containsKey(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).containsKey(kotlin.Int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).containsKey(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).containsKey(kotlin.Int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).containsKey(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).containsKey(kotlin.Int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).containsKey(kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).containsKey(kotlin.Int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).containsKey(kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).containsKey(kotlin.Long)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).containsValue(kotlin.Boolean)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).containsValue(kotlin.Boolean)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).containsValue(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).containsValue(kotlin.Int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).containsValue(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).containsValue(kotlin.Long)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).containsValue(kotlin.Any)(value: T)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).containsValue(kotlin.Any)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).containsValue(kotlin.Any)(value: T)` Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).containsValue(kotlin.Any)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).forEach(kotlin.Function2)(action: (key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, value) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).forEach(kotlin.Function2)` for each key/value entry. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).forEach(kotlin.Function2)(action: (key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).forEach(kotlin.Function2)` for each key/value entry. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).forEach(kotlin.Function2)(action: (key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).forEach(kotlin.Function2)` for each key/value entry. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).forEach(kotlin.Function2)(action: (key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).forEach(kotlin.Function2)` for each key/value entry. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).forEach(kotlin.Function2)(action: (key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).forEach(kotlin.Function2)` for each key/value entry. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrDefault(kotlin.Int,kotlin.Boolean)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrDefault(kotlin.Int,kotlin.Boolean)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrDefault(kotlin.Int,kotlin.Boolean)` when not present. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrDefault(kotlin.Int,kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrDefault(kotlin.Int,kotlin.Int)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrDefault(kotlin.Int,kotlin.Int)` when not present. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrDefault(kotlin.Int,kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrDefault(kotlin.Int,kotlin.Long)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrDefault(kotlin.Int,kotlin.Long)` when not present. |
| `inline T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrDefault(kotlin.Int,kotlin.Any)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: T)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrDefault(kotlin.Int,kotlin.Any)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrDefault(kotlin.Int,kotlin.Any)` when not present. |
| `inline T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrDefault(kotlin.Long,kotlin.Any)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, defaultValue: T)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrDefault(kotlin.Long,kotlin.Any)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrDefault(kotlin.Long,kotlin.Any)` when not present. |
| `inline T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrElse(kotlin.Int,kotlin.Function0)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: () -> T)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrElse(kotlin.Int,kotlin.Function0)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrElse(kotlin.Int,kotlin.Function0)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrElse(kotlin.Int,kotlin.Function0)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defaultValue: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present. |
| `inline T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrElse(kotlin.Long,kotlin.Function0)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, defaultValue: () -> T)` Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrElse(kotlin.Long,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrElse(kotlin.Long,kotlin.Function0)` when not present. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).isEmpty()()` Return true when the collection contains no elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).isEmpty()()` Return true when the collection contains no elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).isEmpty()()` Return true when the collection contains no elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).isEmpty()()` Return true when the collection contains no elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).isEmpty()()` Return true when the collection contains no elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).isNotEmpty()()` Return true when the collection contains elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).isNotEmpty()()` Return true when the collection contains elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).isNotEmpty()()` Return true when the collection contains elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).isNotEmpty()()` Return true when the collection contains elements. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).isNotEmpty()()` Return true when the collection contains elements. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-long-iterator/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).keyIterator()()` Return an iterator over the collection's keys. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-int-iterator/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).keyIterator()()` Return an iterator over the collection's keys. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-int-iterator/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).keyIterator()()` Return an iterator over the collection's keys. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-int-iterator/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).keyIterator()()` Return an iterator over the collection's keys. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-int-iterator/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).keyIterator()()` Return an iterator over the collection's keys. |
| `operator https://developer.android.com/reference/android/util/LongSparseArray.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).plus(android.util.LongSparseArray)(other: https://developer.android.com/reference/android/util/LongSparseArray.html<T>)` Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).plus(android.util.LongSparseArray)`. |
| `inline operator https://developer.android.com/reference/android/util/Range.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<T>> https://developer.android.com/reference/android/util/Range.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).plus(android.util.Range)(other: https://developer.android.com/reference/android/util/Range.html<T>)` Return the smallest range that includes this and `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).plus(android.util.Range)`. |
| `operator https://developer.android.com/reference/android/util/SparseArray.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).plus(android.util.SparseArray)(other: https://developer.android.com/reference/android/util/SparseArray.html<T>)` Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).plus(android.util.SparseArray)`. |
| `operator https://developer.android.com/reference/android/util/SparseBooleanArray.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).plus(android.util.SparseBooleanArray)(other: https://developer.android.com/reference/android/util/SparseBooleanArray.html)` Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).plus(android.util.SparseBooleanArray)`. |
| `operator https://developer.android.com/reference/android/util/SparseIntArray.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).plus(android.util.SparseIntArray)(other: https://developer.android.com/reference/android/util/SparseIntArray.html)` Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).plus(android.util.SparseIntArray)`. |
| `operator https://developer.android.com/reference/android/util/SparseLongArray.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).plus(android.util.SparseLongArray)(other: https://developer.android.com/reference/android/util/SparseLongArray.html)` Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).plus(android.util.SparseLongArray)`. |
| `inline operator https://developer.android.com/reference/android/util/Range.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<T>> https://developer.android.com/reference/android/util/Range.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).plus(kotlin.Comparable)(value: T)` Return the smallest range that includes this and `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).plus(kotlin.Comparable)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).putAll(android.util.LongSparseArray)(other: https://developer.android.com/reference/android/util/LongSparseArray.html<T>)` Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).putAll(android.util.LongSparseArray)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).putAll(android.util.SparseArray)(other: https://developer.android.com/reference/android/util/SparseArray.html<T>)` Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).putAll(android.util.SparseArray)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).putAll(android.util.SparseBooleanArray)(other: https://developer.android.com/reference/android/util/SparseBooleanArray.html)` Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).putAll(android.util.SparseBooleanArray)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).putAll(android.util.SparseIntArray)(other: https://developer.android.com/reference/android/util/SparseIntArray.html)` Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).putAll(android.util.SparseIntArray)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).putAll(android.util.SparseLongArray)(other: https://developer.android.com/reference/android/util/SparseLongArray.html)` Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).putAll(android.util.SparseLongArray)`. |
| `inline infix https://developer.android.com/reference/android/util/Range.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<T>> T.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Comparable).rangeTo(kotlin.Comparable)(that: T)` Creates a range from this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html` value to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Comparable).rangeTo(kotlin.Comparable)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` | `https://developer.android.com/reference/android/util/AtomicFile.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).readBytes()()` Gets the entire content of this file as a byte array. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/android/util/AtomicFile.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).readText(java.nio.charset.Charset)(charset: https://developer.android.com/reference/java/nio/charset/Charset.html)` Gets the entire content of this file as a String using UTF-8 or specified `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).readText(java.nio.charset.Charset)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).remove(kotlin.Int,kotlin.Boolean)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).remove(kotlin.Int,kotlin.Boolean)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).remove(kotlin.Int,kotlin.Boolean)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).remove(kotlin.Int,kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).remove(kotlin.Int,kotlin.Int)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).remove(kotlin.Int,kotlin.Int)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).remove(kotlin.Int,kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).remove(kotlin.Int,kotlin.Long)` only if it is set to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).remove(kotlin.Int,kotlin.Long)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).remove(kotlin.Int,kotlin.Any)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: T)` Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).remove(kotlin.Int,kotlin.Any)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).remove(kotlin.Int,kotlin.Any)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).remove(kotlin.Long,kotlin.Any)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, value: T)` Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).remove(kotlin.Long,kotlin.Any)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).remove(kotlin.Long,kotlin.Any)`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).set(kotlin.Int,kotlin.Boolean)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Allows the use of the index operator for storing values in the collection. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).set(kotlin.Int,kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Allows the use of the index operator for storing values in the collection. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).set(kotlin.Int,kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Allows the use of the index operator for storing values in the collection. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).set(kotlin.Int,kotlin.Any)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: T)` Allows the use of the index operator for storing values in the collection. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).set(kotlin.Long,kotlin.Any)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, value: T)` Allows the use of the index operator for storing values in the collection. |
| `inline https://developer.android.com/reference/android/util/Pair.html<F, S>` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Pair).toAndroidPair()()` Returns this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html` as an `https://developer.android.com/reference/android/util/Pair.html`. |
| `inline https://developer.android.com/reference/kotlin/androidx/core/util/Pair<F, S>` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Pair).toAndroidXPair()()` Returns this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html` as an `https://developer.android.com/reference/kotlin/androidx/core/util/Pair`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-range/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<T>> https://developer.android.com/reference/android/util/Range.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).toClosedRange()()` Returns this `https://developer.android.com/reference/android/util/Range.html` as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-range/index.html`. |
| `inline https://developer.android.com/reference/android/util/Half.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @https://developer.android.com/reference/kotlin/androidx/annotation/HalfFloat https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short/index.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Short).toHalf()()` Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short/index.html`. |
| `inline https://developer.android.com/reference/android/util/Half.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Float).toHalf()()` Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html`. |
| `inline https://developer.android.com/reference/android/util/Half.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Double).toHalf()()` Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html`. |
| `inline https://developer.android.com/reference/android/util/Half.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.String).toHalf()()` Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<F, S>` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/core/util/Pair<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(androidx.core.util.Pair).toKotlinPair()()` Returns this `https://developer.android.com/reference/kotlin/androidx/core/util/Pair` as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<F, S>` | `<F : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/Pair.html<F, S>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Pair).toKotlinPair()()` Returns this `https://developer.android.com/reference/android/util/Pair.html` as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html`. |
| `https://developer.android.com/reference/android/util/Range.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<T>> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-range/index.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.ranges.ClosedRange).toRange()()` Returns this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-range/index.html` as a `https://developer.android.com/reference/android/util/Range.html`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/AtomicFile.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).tryWrite(kotlin.Function1)(block: (out: https://developer.android.com/reference/java/io/FileOutputStream.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Perform the write operations inside `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).tryWrite(kotlin.Function1)` on this file. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterator/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).valueIterator()()` Return an iterator over the collection's values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterator/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).valueIterator()()` Return an iterator over the collection's values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-boolean-iterator/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).valueIterator()()` Return an iterator over the collection's values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-int-iterator/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).valueIterator()()` Return an iterator over the collection's values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-long-iterator/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).valueIterator()()` Return an iterator over the collection's values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/AtomicFile.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeBytes(kotlin.ByteArray)(array: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)` Sets the content of this file as an `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeBytes(kotlin.ByteArray)` of bytes. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/util/AtomicFile.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeText(kotlin.String,java.nio.charset.Charset)(text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, charset: https://developer.android.com/reference/java/nio/charset/Charset.html)` Sets the content of this file as `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeText(kotlin.String,java.nio.charset.Charset)` encoded using UTF-8 or specified `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeText(kotlin.String,java.nio.charset.Charset)`. |

## Extension properties summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/LongSparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).size()` Returns the number of key/value pairs in the collection. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/SparseArray.html<T>.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).size()` Returns the number of key/value pairs in the collection. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/SparseBooleanArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).size()` Returns the number of key/value pairs in the collection. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/SparseIntArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).size()` Returns the number of key/value pairs in the collection. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/util/SparseLongArray.html.https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).size()` Returns the number of key/value entries in the collection. |

## Top-level functions

### lruCache

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LruCache.kt+function:lruCache) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Creates an `https://developer.android.com/reference/android/util/LruCache.html` with the given parameters.

| Parameters |
|---|---|
| `maxSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | for caches that do not specify `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#lruCache(kotlin.Int,kotlin.Function2,kotlin.Function1,kotlin.Function4)`, this is the maximum number of entries in the cache. For all other caches, this is the maximum sum of the sizes of the entries in this cache. |
| `crossinline sizeOf: (key, value) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = { _, _ -> 1 }` | function that returns the size of the entry for key and value in user-defined units. The default implementation returns 1. |
| `crossinline create: (key) -> V? = { null as V? }` | a create called after a cache miss to compute a value for the corresponding key. Returns the computed value or null if no value can be computed. The default implementation returns null. |
| `crossinline onEntryRemoved: (evicted: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, key, oldValue, newValue?) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html = { _, _, _, _ -> }` | a function called for entries that have been evicted or removed. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/util/LruCache.html#sizeOf(K, V)` |   |
| `https://developer.android.com/reference/android/util/LruCache.html#create(K)` |   |
| `https://developer.android.com/reference/android/util/LruCache.html#entryRemoved(boolean, K, V, V)` |   |

## Extension functions

### Range.and

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Range.kt+function:and)

```
inline infix fun <T : Comparable<T>> Range<T>.and(other: Range<T>): Range<T>
```

Return the intersection of this range and `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).and(android.util.Range)`.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if this is disjoint from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).and(android.util.Range)`. |

### Continuation.asAndroidXConsumer

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/AndroidXConsumer.kt+function:asAndroidXConsumer)

```
fun <T : Any?> Continuation<T>.asAndroidXConsumer(): Consumer<T>
```

Returns a `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer` that will resume this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html` when the result of an operation is `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer#accept(kotlin.Any)`.

Useful for writing `suspend` bindings to async Jetpack library methods that accept `https://developer.android.com/reference/kotlin/androidx/core/util/Consumer` as a result callback for a one-time operation:

```kotlin
public suspend fun FancinessManager.query(
    query: FancinessManager.Query
): FancinessManager.QueryResult = suspendCancellableCoroutine<QueryResult> { continuation ->

    // Any Android API that supports cancellation should be configured to propagate
    // coroutine cancellation as follows:
    val canceller = CancellationSignal()
    continuation.invokeOnCancellation { canceller.cancel() }

    // Invoke the FancinessManager#queryAsync method as follows:
    queryAsync(
        query,
        canceller,
        // Use a direct executor to avoid extra dispatch. Resuming the continuation will
        // handle getting to the right thread or pool via the ContinuationInterceptor.
        Runnable::run,
        continuation.asAndroidXConsumer()
    )
}
```

### Continuation.asConsumer

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/PlatformConsumer.kt+function:asConsumer)

```
@RequiresApi(value = 24)
fun <T : Any?> Continuation<T>.asConsumer(): Consumer<T>
```

Returns a `https://developer.android.com/reference/java/util/function/Consumer.html` that will resume this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html` when the result of an operation is `https://developer.android.com/reference/java/util/function/Consumer.html#accept(T)`.

Useful for writing `suspend` bindings to async methods that accept `https://developer.android.com/reference/java/util/function/Consumer.html` as a result callback for a one-time operation:

```kotlin
public suspend fun FancinessManager.query(
    query: FancinessManager.Query
): FancinessManager.QueryResult = suspendCancellableCoroutine<QueryResult> { continuation ->

    // Any Android API that supports cancellation should be configured to propagate
    // coroutine cancellation as follows:
    val canceller = CancellationSignal()
    continuation.invokeOnCancellation { canceller.cancel() }

    // Invoke the FancinessManager#queryAsync method as follows:
    queryAsync(
        query,
        canceller,
        // Use a direct executor to avoid extra dispatch. Resuming the continuation will
        // handle getting to the right thread or pool via the ContinuationInterceptor.
        Runnable::run,
        continuation.asConsumer()
    )
}
```

### Continuation.asRunnable

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Runnable.kt+function:asRunnable)

```
fun Continuation<Unit>.asRunnable(): Runnable
```

Returns a `https://developer.android.com/reference/java/lang/Runnable.html` that will resume this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-continuation/index.html` when an operation completes and the returned `https://developer.android.com/reference/java/lang/Runnable.html`'s `https://developer.android.com/reference/java/lang/Runnable.html#run()` method is called.

Useful for writing `suspend` bindings to async Jetpack library methods that accept `https://developer.android.com/reference/java/lang/Runnable.html` as a completion callback for a one-time operation:

```kotlin
public suspend fun FancinessManager.setFanciness(
    fanciness: Float
): Unit = suspendCancellableCoroutine<Unit> { continuation ->

    // Any Android API that supports cancellation should be configured to propagate
    // coroutine cancellation as follows:
    val canceller = CancellationSignal()
    continuation.invokeOnCancellation { canceller.cancel() }

    // Invoke the FancinessManager#setFanciness method as follows:
    queryAsync(
        fanciness,
        canceller,
        // Use a direct executor to avoid extra dispatch. Resuming the continuation will
        // handle getting to the right thread or pool via the ContinuationInterceptor.
        Runnable::run,
        continuation.asRunnable()
    )
}
```

### Pair.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:component1) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
inline operator fun <F : Any?, S : Any?> Pair<F, S>.component1(): F
```

Returns the first component of the pair.

This method allows to use destructuring declarations when working with pairs, for example:

```kotlin
val (first, second) = myPair
```

### Pair.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun <F : Any?, S : Any?> Pair<F, S>.component1(): F
```

Returns the first component of the pair.

This method allows to use destructuring declarations when working with pairs, for example:

```kotlin
val (first, second) = myPair
```

### Size.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Size.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Size.component1(): Int
```

Returns "width", the first component of this `https://developer.android.com/reference/android/util/Size.html`.

This method allows to use destructuring declarations when working with sizes, for example:

```kotlin
val (w, h) = mySize
```

### SizeF.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Size.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SizeF.component1(): Float
```

Returns "width", the first component of this `https://developer.android.com/reference/android/util/SizeF.html`.

This method allows to use destructuring declarations when working with sizes, for example:

```kotlin
val (w, h) = mySize
```

### SizeFCompat.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Size.kt+function:component1) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
inline operator fun SizeFCompat.component1(): Float
```

Returns "width", the first component of this `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat`.

This method allows to use destructuring declarations when working with sizes, for example:

```kotlin
val (w, h) = mySize
```

### Pair.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:component2) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
inline operator fun <F : Any?, S : Any?> Pair<F, S>.component2(): S
```

Returns the second component of the pair.

This method allows to use destructuring declarations when working with pairs, for example:

```kotlin
val (first, second) = myPair
```

### Pair.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun <F : Any?, S : Any?> Pair<F, S>.component2(): S
```

Returns the second component of the pair.

This method allows to use destructuring declarations when working with pairs, for example:

```kotlin
val (first, second) = myPair
```

### Size.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Size.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Size.component2(): Int
```

Returns "height", the second component of this `https://developer.android.com/reference/android/util/Size.html`.

This method allows to use destructuring declarations when working with sizes, for example:

```kotlin
val (w, h) = mySize
```

### SizeF.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Size.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SizeF.component2(): Float
```

Returns "height", the second component of this `https://developer.android.com/reference/android/util/SizeF.html`.

This method allows to use destructuring declarations when working with sizes, for example:

```kotlin
val (w, h) = mySize
```

### SizeFCompat.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Size.kt+function:component2) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
inline operator fun SizeFCompat.component2(): Float
```

Returns "height", the second component of this `https://developer.android.com/reference/kotlin/androidx/core/util/SizeFCompat`.

This method allows to use destructuring declarations when working with sizes, for example:

```kotlin
val (w, h) = mySize
```

### SparseArray.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun <T : Any?> SparseArray<T>.contains(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).contains(kotlin.Int)`.

### SparseBooleanArray.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SparseBooleanArray.contains(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).contains(kotlin.Int)`.

### SparseIntArray.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SparseIntArray.contains(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).contains(kotlin.Int)`.

### SparseLongArray.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SparseLongArray.contains(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).contains(kotlin.Int)`.

### LongSparseArray.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).contains(kotlin.Long)`.

### SparseArray.containsKey

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:containsKey) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.containsKey(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).containsKey(kotlin.Int)`.

### SparseBooleanArray.containsKey

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:containsKey) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.containsKey(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).containsKey(kotlin.Int)`.

### SparseIntArray.containsKey

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:containsKey) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.containsKey(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).containsKey(kotlin.Int)`.

### SparseLongArray.containsKey

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:containsKey) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.containsKey(key: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).containsKey(kotlin.Int)`.

### LongSparseArray.containsKey

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:containsKey) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> LongSparseArray<T>.containsKey(key: Long): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).containsKey(kotlin.Long)`.

### SparseBooleanArray.containsValue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:containsValue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.containsValue(value: Boolean): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).containsValue(kotlin.Boolean)`.

### SparseIntArray.containsValue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:containsValue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.containsValue(value: Int): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).containsValue(kotlin.Int)`.

### SparseLongArray.containsValue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:containsValue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.containsValue(value: Long): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).containsValue(kotlin.Long)`.

### LongSparseArray.containsValue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:containsValue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> LongSparseArray<T>.containsValue(value: T): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).containsValue(kotlin.Any)`.

### SparseArray.containsValue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:containsValue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.containsValue(value: T): Boolean
```

Returns true if the collection contains `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).containsValue(kotlin.Any)`.

### LongSparseArray.forEach

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:forEach) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).forEach(kotlin.Function2)` for each key/value entry.

### SparseArray.forEach

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:forEach) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.forEach(action: (key: Int, value) -> Unit): Unit
```

Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).forEach(kotlin.Function2)` for each key/value entry.

### SparseBooleanArray.forEach

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:forEach) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.forEach(action: (key: Int, value: Boolean) -> Unit): Unit
```

Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).forEach(kotlin.Function2)` for each key/value entry.

### SparseIntArray.forEach

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:forEach) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.forEach(action: (key: Int, value: Int) -> Unit): Unit
```

Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).forEach(kotlin.Function2)` for each key/value entry.

### SparseLongArray.forEach

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:forEach) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.forEach(action: (key: Int, value: Long) -> Unit): Unit
```

Performs the given `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).forEach(kotlin.Function2)` for each key/value entry.

### SparseBooleanArray.getOrDefault

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:getOrDefault) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.getOrDefault(key: Int, defaultValue: Boolean): Boolean
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrDefault(kotlin.Int,kotlin.Boolean)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrDefault(kotlin.Int,kotlin.Boolean)` when not present.

### SparseIntArray.getOrDefault

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:getOrDefault) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.getOrDefault(key: Int, defaultValue: Int): Int
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrDefault(kotlin.Int,kotlin.Int)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrDefault(kotlin.Int,kotlin.Int)` when not present.

### SparseLongArray.getOrDefault

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:getOrDefault) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.getOrDefault(key: Int, defaultValue: Long): Long
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrDefault(kotlin.Int,kotlin.Long)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrDefault(kotlin.Int,kotlin.Long)` when not present.

### SparseArray.getOrDefault

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:getOrDefault) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.getOrDefault(key: Int, defaultValue: T): T
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrDefault(kotlin.Int,kotlin.Any)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrDefault(kotlin.Int,kotlin.Any)` when not present.

### LongSparseArray.getOrDefault

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:getOrDefault) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrDefault(kotlin.Long,kotlin.Any)`, or `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrDefault(kotlin.Long,kotlin.Any)` when not present.

### SparseArray.getOrElse

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:getOrElse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.getOrElse(key: Int, defaultValue: () -> T): T
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present.

### SparseBooleanArray.getOrElse

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:getOrElse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.getOrElse(key: Int, defaultValue: () -> Boolean): Boolean
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present.

### SparseIntArray.getOrElse

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:getOrElse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.getOrElse(key: Int, defaultValue: () -> Int): Int
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present.

### SparseLongArray.getOrElse

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:getOrElse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.getOrElse(key: Int, defaultValue: () -> Long): Long
```

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrElse(kotlin.Int,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).getOrElse(kotlin.Int,kotlin.Function0)` when not present.

### LongSparseArray.getOrElse

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:getOrElse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Return the value corresponding to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrElse(kotlin.Long,kotlin.Function0)`, or from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).getOrElse(kotlin.Long,kotlin.Function0)` when not present.

### LongSparseArray.isEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:isEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> LongSparseArray<T>.isEmpty(): Boolean
```

Return true when the collection contains no elements.

### SparseArray.isEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:isEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.isEmpty(): Boolean
```

Return true when the collection contains no elements.

### SparseBooleanArray.isEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:isEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.isEmpty(): Boolean
```

Return true when the collection contains no elements.

### SparseIntArray.isEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:isEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.isEmpty(): Boolean
```

Return true when the collection contains no elements.

### SparseLongArray.isEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:isEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.isEmpty(): Boolean
```

Return true when the collection contains no elements.

### LongSparseArray.isNotEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:isNotEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> LongSparseArray<T>.isNotEmpty(): Boolean
```

Return true when the collection contains elements.

### SparseArray.isNotEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:isNotEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <T : Any?> SparseArray<T>.isNotEmpty(): Boolean
```

Return true when the collection contains elements.

### SparseBooleanArray.isNotEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:isNotEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseBooleanArray.isNotEmpty(): Boolean
```

Return true when the collection contains elements.

### SparseIntArray.isNotEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:isNotEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseIntArray.isNotEmpty(): Boolean
```

Return true when the collection contains elements.

### SparseLongArray.isNotEmpty

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:isNotEmpty) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun SparseLongArray.isNotEmpty(): Boolean
```

Return true when the collection contains elements.

### LongSparseArray.keyIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:keyIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> LongSparseArray<T>.keyIterator(): LongIterator
```

Return an iterator over the collection's keys.

### SparseArray.keyIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:keyIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> SparseArray<T>.keyIterator(): IntIterator
```

Return an iterator over the collection's keys.

### SparseBooleanArray.keyIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:keyIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseBooleanArray.keyIterator(): IntIterator
```

Return an iterator over the collection's keys.

### SparseIntArray.keyIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:keyIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseIntArray.keyIterator(): IntIterator
```

Return an iterator over the collection's keys.

### SparseLongArray.keyIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:keyIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseLongArray.keyIterator(): IntIterator
```

Return an iterator over the collection's keys.

### LongSparseArray.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).plus(android.util.LongSparseArray)`.

### Range.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Range.kt+function:plus)

```
inline operator fun <T : Comparable<T>> Range<T>.plus(other: Range<T>): Range<T>
```

Return the smallest range that includes this and `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).plus(android.util.Range)`.

### SparseArray.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
operator fun <T : Any?> SparseArray<T>.plus(other: SparseArray<T>): SparseArray<T>
```

Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).plus(android.util.SparseArray)`.

### SparseBooleanArray.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
operator fun SparseBooleanArray.plus(other: SparseBooleanArray): SparseBooleanArray
```

Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).plus(android.util.SparseBooleanArray)`.

### SparseIntArray.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
operator fun SparseIntArray.plus(other: SparseIntArray): SparseIntArray
```

Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).plus(android.util.SparseIntArray)`.

### SparseLongArray.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
operator fun SparseLongArray.plus(other: SparseLongArray): SparseLongArray
```

Creates a new collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).plus(android.util.SparseLongArray)`.

### Range.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Range.kt+function:plus)

```
inline operator fun <T : Comparable<T>> Range<T>.plus(value: T): Range<T>
```

Return the smallest range that includes this and `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.Range).plus(kotlin.Comparable)`.

### LongSparseArray.putAll

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:putAll) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> LongSparseArray<T>.putAll(other: LongSparseArray<T>): Unit
```

Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).putAll(android.util.LongSparseArray)`.

### SparseArray.putAll

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:putAll) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> SparseArray<T>.putAll(other: SparseArray<T>): Unit
```

Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).putAll(android.util.SparseArray)`.

### SparseBooleanArray.putAll

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:putAll) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseBooleanArray.putAll(other: SparseBooleanArray): Unit
```

Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).putAll(android.util.SparseBooleanArray)`.

### SparseIntArray.putAll

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:putAll) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseIntArray.putAll(other: SparseIntArray): Unit
```

Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).putAll(android.util.SparseIntArray)`.

### SparseLongArray.putAll

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:putAll) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseLongArray.putAll(other: SparseLongArray): Unit
```

Update this collection by adding or replacing entries from `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).putAll(android.util.SparseLongArray)`.

### T.rangeTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Range.kt+function:rangeTo)

```
inline infix fun <T : Comparable<T>> T.rangeTo(that: T): Range<T>
```

Creates a range from this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html` value to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Comparable).rangeTo(kotlin.Comparable)`.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if this value is comparatively smaller than `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(kotlin.Comparable).rangeTo(kotlin.Comparable)`. |

### AtomicFile.readBytes

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/AtomicFile.kt+function:readBytes) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun AtomicFile.readBytes(): ByteArray
```

Gets the entire content of this file as a byte array.

This method is not recommended on huge files. It has an internal limitation of 2 GB file size.

### AtomicFile.readText

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/AtomicFile.kt+function:readText) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun AtomicFile.readText(charset: Charset = Charsets.UTF_8): String
```

Gets the entire content of this file as a String using UTF-8 or specified `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).readText(java.nio.charset.Charset)`.

This method is not recommended on huge files. It has an internal limitation of 2 GB file size.

### SparseBooleanArray.remove

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:remove) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseBooleanArray.remove(key: Int, value: Boolean): Boolean
```

Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).remove(kotlin.Int,kotlin.Boolean)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseBooleanArray).remove(kotlin.Int,kotlin.Boolean)`.

### SparseIntArray.remove

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:remove) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseIntArray.remove(key: Int, value: Int): Boolean
```

Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).remove(kotlin.Int,kotlin.Int)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseIntArray).remove(kotlin.Int,kotlin.Int)`.

### SparseLongArray.remove

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:remove) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseLongArray.remove(key: Int, value: Long): Boolean
```

Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).remove(kotlin.Int,kotlin.Long)` only if it is set to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseLongArray).remove(kotlin.Int,kotlin.Long)`.

### SparseArray.remove

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:remove) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> SparseArray<T>.remove(key: Int, value: T): Boolean
```

Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).remove(kotlin.Int,kotlin.Any)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.SparseArray).remove(kotlin.Int,kotlin.Any)`.

### LongSparseArray.remove

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:remove) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> LongSparseArray<T>.remove(key: Long, value: T): Boolean
```

Removes the entry for `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).remove(kotlin.Long,kotlin.Any)` only if it is mapped to `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.LongSparseArray).remove(kotlin.Long,kotlin.Any)`.

### SparseBooleanArray.set

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:set) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SparseBooleanArray.set(key: Int, value: Boolean): Unit
```

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

### SparseIntArray.set

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:set) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SparseIntArray.set(key: Int, value: Int): Unit
```

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

### SparseLongArray.set

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:set) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun SparseLongArray.set(key: Int, value: Long): Unit
```

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

### SparseArray.set

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:set) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun <T : Any?> SparseArray<T>.set(key: Int, value: T): Unit
```

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

### LongSparseArray.set

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:set) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

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

### Pair.toAndroidPair

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:toAndroidPair)

```
inline fun <F : Any?, S : Any?> Pair<F, S>.toAndroidPair(): Pair<F, S>
```

Returns this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html` as an `https://developer.android.com/reference/android/util/Pair.html`.

### Pair.toAndroidXPair

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:toAndroidXPair)

```
inline fun <F : Any?, S : Any?> Pair<F, S>.toAndroidXPair(): Pair<F, S>
```

Returns this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html` as an `https://developer.android.com/reference/kotlin/androidx/core/util/Pair`.

### Range.toClosedRange

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Range.kt+function:toClosedRange)

```
fun <T : Comparable<T>> Range<T>.toClosedRange(): ClosedRange<T>
```

Returns this `https://developer.android.com/reference/android/util/Range.html` as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-range/index.html`.

### Short.toHalf

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Half.kt+function:toHalf) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun @HalfFloat Short.toHalf(): Half
```

Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short/index.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/util/Half.html#valueOf(float)` |   |

### Float.toHalf

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Half.kt+function:toHalf) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun Float.toHalf(): Half
```

Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/util/Half.html#valueOf(float)` |   |

### Double.toHalf

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Half.kt+function:toHalf) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun Double.toHalf(): Half
```

Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/util/Half.html#valueOf(float)` |   |

### String.toHalf

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Half.kt+function:toHalf) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun String.toHalf(): Half
```

Returns a `https://developer.android.com/reference/android/util/Half.html` instance representing given `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/util/Half.html#valueOf(float)` |   |

### Pair.toKotlinPair

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:toKotlinPair) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
inline fun <F : Any?, S : Any?> Pair<F, S>.toKotlinPair(): Pair<F, S>
```

Returns this `https://developer.android.com/reference/kotlin/androidx/core/util/Pair` as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html`.

### Pair.toKotlinPair

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Pair.kt+function:toKotlinPair) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun <F : Any?, S : Any?> Pair<F, S>.toKotlinPair(): Pair<F, S>
```

Returns this `https://developer.android.com/reference/android/util/Pair.html` as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html`.

### ClosedRange.toRange

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/Range.kt+function:toRange)

```
fun <T : Comparable<T>> ClosedRange<T>.toRange(): Range<T>
```

Returns this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-range/index.html` as a `https://developer.android.com/reference/android/util/Range.html`.

### AtomicFile.tryWrite

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/AtomicFile.kt+function:tryWrite) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun AtomicFile.tryWrite(block: (out: FileOutputStream) -> Unit): Unit
```

Perform the write operations inside `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).tryWrite(kotlin.Function1)` on this file. If `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).tryWrite(kotlin.Function1)` throws an exception the write will be failed. Otherwise the write will be applied atomically to the file.

### LongSparseArray.valueIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+function:valueIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> LongSparseArray<T>.valueIterator(): Iterator<T>
```

Return an iterator over the collection's values.

### SparseArray.valueIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+function:valueIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun <T : Any?> SparseArray<T>.valueIterator(): Iterator<T>
```

Return an iterator over the collection's values.

### SparseBooleanArray.valueIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+function:valueIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseBooleanArray.valueIterator(): BooleanIterator
```

Return an iterator over the collection's values.

### SparseIntArray.valueIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+function:valueIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseIntArray.valueIterator(): IntIterator
```

Return an iterator over the collection's values.

### SparseLongArray.valueIterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+function:valueIterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun SparseLongArray.valueIterator(): LongIterator
```

Return an iterator over the collection's values.

### AtomicFile.writeBytes

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/AtomicFile.kt+function:writeBytes) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun AtomicFile.writeBytes(array: ByteArray): Unit
```

Sets the content of this file as an `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeBytes(kotlin.ByteArray)` of bytes.

### AtomicFile.writeText

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/AtomicFile.kt+function:writeText) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun AtomicFile.writeText(text: String, charset: Charset = Charsets.UTF_8): Unit
```

Sets the content of this file as `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeText(kotlin.String,java.nio.charset.Charset)` encoded using UTF-8 or specified `https://developer.android.com/reference/kotlin/androidx/core/util/package-summary#(android.util.AtomicFile).writeText(kotlin.String,java.nio.charset.Charset)`. If this file exists, it becomes overwritten.

## Extension properties

### LongSparseArray.size

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/LongSparseArray.kt+symbol:size)

```
val LongSparseArray<T>.size: Int
```

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

### SparseArray.size

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseArray.kt+symbol:size)

```
val SparseArray<T>.size: Int
```

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

### SparseBooleanArray.size

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseBooleanArray.kt+symbol:size) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val SparseBooleanArray.size: Int
```

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

### SparseIntArray.size

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseIntArray.kt+symbol:size) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val SparseIntArray.size: Int
```

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

### SparseLongArray.size

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/util/SparseLongArray.kt+symbol:size) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val SparseLongArray.size: Int
```

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