| <html devsite="true"> |
| <head> |
| <title>ArrayMapKt</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="ArrayMapKt"> |
| <meta itemprop="path" content="androidx.collection"> |
| <meta itemprop="property" content="arrayMapOf()"> |
| <meta itemprop="property" content="arrayMapOf(kotlin.Array)"> |
| <meta itemprop="language" content="JAVA"> |
| </div> |
| <div id="header-block"> |
| <div> |
| <h1>ArrayMapKt</h1> |
| </div> |
| </div> |
| <div id="refdoc-switcher-placeholder"></div> |
| <p> |
| <pre>public final class <a href="/reference/androidx/collection/ArrayMapKt.html">ArrayMapKt</a></pre> |
| </p> |
| <hr> |
| <h2>Summary</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <colgroup> |
| <col width="40%"> |
| <col> |
| </colgroup> |
| <thead> |
| <tr> |
| <th colspan="100%"><h3>Public methods</h3></th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td><code>static final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> K, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> V></code></td> |
| <td> |
| <div><code><K extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>, V extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/collection/ArrayMapKt.html#arrayMapOf()">arrayMapOf</a>()</code></div> |
| <p>Returns an empty new <code><a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code>static final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> K, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> V></code></td> |
| <td> |
| <div><code><K extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>, V extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/collection/ArrayMapKt.html#arrayMapOf(kotlin.Array)">arrayMapOf</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> K, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> V> pairs<br>)</code></div> |
| <p>Returns a new <code><a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a></code> with the specified contents, given as a list of pairs where the first component is the key and the second component is the value.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <div class="list"> |
| <h2>Public methods</h2> |
| <div class="api-item"><a name="arrayMapOf--"></a><a name="arraymapof"></a> |
| <div class="api-name-block"> |
| <div> |
| <h3 id="arrayMapOf()">arrayMapOf</h3> |
| </div> |
| </div> |
| <pre class="api-signature no-pretty-print">public static final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> K, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> V> <K extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>, V extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/collection/ArrayMapKt.html#arrayMapOf()">arrayMapOf</a>()</pre> |
| <p>Returns an empty new <code><a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a></code>.</p> |
| </div> |
| <div class="api-item"><a name="arrayMapOf-kotlin.Array-"></a><a name="arraymapof"></a> |
| <div class="api-name-block"> |
| <div> |
| <h3 id="arrayMapOf(kotlin.Array)">arrayMapOf</h3> |
| </div> |
| </div> |
| <pre class="api-signature no-pretty-print">public static final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> K, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> V> <K extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>, V extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/collection/ArrayMapKt.html#arrayMapOf(kotlin.Array)">arrayMapOf</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> K, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> V> pairs<br>)</pre> |
| <p>Returns a new <code><a href="/reference/androidx/collection/ArrayMap.html">ArrayMap</a></code> with the specified contents, given as a list of pairs where the first component is the key and the second component is the value.</p> |
| <p>If multiple pairs have the same key, the resulting map will contain the value from the last of those pairs.</p> |
| </div> |
| </div> |
| </body> |
| </html> |