| <html devsite="true"> |
| <head> |
| <title>AtomicReference</title> |
| {% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} |
| {% include "_shared/_reference-head-tags.html" %} |
| </head> |
| <body> |
| <div id="metadata-info-block"></div> |
| <h1>AtomicReference</h1> |
| <p> |
| <pre>class <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html">AtomicReference</a><V : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?></pre> |
| </p> |
| <hr> |
| <h2>Summary</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="100%"><h3>Public constructors</h3></th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td> |
| <div><code><V : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?> <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#AtomicReference(kotlin.Any)">AtomicReference</a>(value: V)</code></div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="100%"><h3>Public functions</h3></th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></code></td> |
| <td> |
| <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#compareAndSet(kotlin.Any,kotlin.Any)">compareAndSet</a>(expect: V, newValue: V)</code></div> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>V</code></td> |
| <td> |
| <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#get()">get</a>()</code></div> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>V</code></td> |
| <td> |
| <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#getAndSet(kotlin.Any)">getAndSet</a>(value: V)</code></div> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td> |
| <td> |
| <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#set(kotlin.Any)">set</a>(value: V)</code></div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <h2>Public constructors</h2> |
| <div><a name="AtomicReference-kotlin.Any-"></a><a name="atomicreference"></a> |
| <h3 class="api-name" id="AtomicReference(kotlin.Any)">AtomicReference</h3> |
| <pre class="api-signature no-pretty-print"><V : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?> <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#AtomicReference(kotlin.Any)">AtomicReference</a>(value: V)</pre> |
| </div> |
| <h2>Public functions</h2> |
| <div><a name="compareAndSet(kotlin.Any, kotlin.Any)"></a><a name="compareAndSet-kotlin.Any-kotlin.Any-"></a><a name="compareandset"></a> |
| <h3 class="api-name" id="compareAndSet(kotlin.Any,kotlin.Any)">compareAndSet</h3> |
| <pre class="api-signature no-pretty-print">fun <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#compareAndSet(kotlin.Any,kotlin.Any)">compareAndSet</a>(expect: V, newValue: V): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></pre> |
| </div> |
| <div><a name="get--"></a><a name="get"></a> |
| <h3 class="api-name" id="get()">get</h3> |
| <pre class="api-signature no-pretty-print">fun <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#get()">get</a>(): V</pre> |
| </div> |
| <div><a name="getAndSet-kotlin.Any-"></a><a name="getandset"></a> |
| <h3 class="api-name" id="getAndSet(kotlin.Any)">getAndSet</h3> |
| <pre class="api-signature no-pretty-print">fun <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#getAndSet(kotlin.Any)">getAndSet</a>(value: V): V</pre> |
| </div> |
| <div><a name="set-kotlin.Any-"></a><a name="set"></a> |
| <h3 class="api-name" id="set(kotlin.Any)">set</h3> |
| <pre class="api-signature no-pretty-print">fun <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#set(kotlin.Any)">set</a>(value: V): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre> |
| </div> |
| </body> |
| </html> |