blob: 719997e94778b1e9e436e927c8f447cd0673d90d [file]
<html devsite="true">
<head>
<title>androidx.collection</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div itemscope="" itemtype="http://developers.google.com/ReferenceObject">
<meta itemprop="name" content="androidx.collection">
<meta itemprop="property" content="ArrayMap">
<meta itemprop="property" content="ArrayMapKt">
<meta itemprop="property" content="ArraySet">
<meta itemprop="property" content="ArraySetKt">
<meta itemprop="property" content="CircularArray">
<meta itemprop="property" content="CircularIntArray">
<meta itemprop="property" content="LongSparseArray">
<meta itemprop="property" content="LongSparseArrayKt">
<meta itemprop="property" content="LruCache">
<meta itemprop="property" content="LruCacheKt">
<meta itemprop="property" content="SimpleArrayMap">
<meta itemprop="property" content="SparseArrayCompat">
<meta itemprop="property" content="SparseArrayKt">
<meta itemprop="property" content="arraySetOf()">
<meta itemprop="property" content="arraySetOf(kotlin.Array)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).contains(kotlin.Long)">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).contains(kotlin.Int)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).set(kotlin.Long,kotlin.Any)">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).set(kotlin.Int,kotlin.Any)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).plus(androidx.collection.LongSparseArray)">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).plus(androidx.collection.SparseArrayCompat)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).getOrDefault(kotlin.Long,kotlin.Any)">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).getOrDefault(kotlin.Int,kotlin.Any)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).getOrElse(kotlin.Long,kotlin.Function0)">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).getOrElse(kotlin.Int,kotlin.Function0)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).isNotEmpty()">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).isNotEmpty()">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).forEach(kotlin.Function2)">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).forEach(kotlin.Function2)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).keyIterator()">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).keyIterator()">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).valueIterator()">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).valueIterator()">
<meta itemprop="property" content="lruCache(kotlin.Int,kotlin.Function2,kotlin.Function1,kotlin.Function4)">
<meta itemprop="property" content="arrayMapOf()">
<meta itemprop="property" content="arrayMapOf(kotlin.Array)">
<meta itemprop="property" content="(androidx.collection.LongSparseArray).size()">
<meta itemprop="property" content="(androidx.collection.SparseArrayCompat).size()">
<meta itemprop="language" content="JAVA">
</div>
<div id="header-block">
<div>
<h1>androidx.collection</h1>
</div>
</div>
<div id="refdoc-switcher-placeholder"></div>
<h2>Classes</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code><a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a></code></td>
<td>
<p>ArrayMap is a generic key->value mapping data structure that is designed to be more memory efficient than a traditional <code><a href="https://developer.android.com/reference/java/util/HashMap.html">java.util.HashMap</a></code>, this implementation is a version of the platform's <code>android.util.ArrayMap</code> that can be used on older versions of the platform.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/ArrayMapKt.html">ArrayMapKt</a></code></td>
<td></td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/ArraySet.html">ArraySet</a></code></td>
<td>
<p>ArraySet is a generic set data structure that is designed to be more memory efficient than a traditional <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-set/index.html">HashSet</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/ArraySetKt.html">ArraySetKt</a></code></td>
<td></td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/CircularArray.html">CircularArray</a></code></td>
<td>
<p>CircularArray is a generic circular array data structure that provides O(1) random read, O(1) prepend and O(1) append.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/CircularIntArray.html">CircularIntArray</a></code></td>
<td>
<p><code><a href="/reference/androidx/collection/CircularIntArray.html">CircularIntArray</a></code> is a circular integer array data structure that provides O(1) random read, O(1) prepend and O(1) append.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/LongSparseArray.html">LongSparseArray</a></code></td>
<td>
<p>SparseArray mapping longs to Objects.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/LongSparseArrayKt.html">LongSparseArrayKt</a></code></td>
<td></td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/LruCache.html">LruCache</a></code></td>
<td>
<p>Static library version of <code>android.util.LruCache</code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/LruCacheKt.html">LruCacheKt</a></code></td>
<td></td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/SimpleArrayMap.html">SimpleArrayMap</a></code></td>
<td>
<p>Base implementation of androidx.collection.ArrayMap that doesn't include any standard Java container API interoperability.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/SparseArrayCompat.html">SparseArrayCompat</a></code></td>
<td>
<p>SparseArrays map integers to Objects.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/androidx/collection/SparseArrayKt.html">SparseArrayKt</a></code></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>