Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 1 | <html devsite="true"> |
| 2 | <head> |
| 3 | <title>AtomicReference</title> |
| 4 | {% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} |
| 5 | {% include "_shared/_reference-head-tags.html" %} |
| 6 | </head> |
| 7 | <body> |
Tiem Song | 6f896de | 2022-11-03 14:55:52 -0700 | [diff] [blame^] | 8 | <div id="metadata-info-block"></div> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 9 | <h1>AtomicReference</h1> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 10 | <p> |
Owen Gray | 22f2057 | 2022-08-08 13:48:02 -0400 | [diff] [blame] | 11 | <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> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 12 | </p> |
| 13 | <hr> |
| 14 | <h2>Summary</h2> |
| 15 | <div class="devsite-table-wrapper"> |
| 16 | <table class="responsive"> |
| 17 | <thead> |
| 18 | <tr> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 19 | <th colspan="100%"><h3>Public constructors</h3></th> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 20 | </tr> |
| 21 | </thead> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 22 | <tbody class="list"> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 23 | <tr> |
| 24 | <td> |
| 25 | <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> |
| 26 | </td> |
| 27 | </tr> |
| 28 | </tbody> |
| 29 | </table> |
| 30 | </div> |
| 31 | <div class="devsite-table-wrapper"> |
| 32 | <table class="responsive"> |
| 33 | <thead> |
| 34 | <tr> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 35 | <th colspan="100%"><h3>Public functions</h3></th> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 36 | </tr> |
| 37 | </thead> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 38 | <tbody class="list"> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 39 | <tr> |
| 40 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></code></td> |
| 41 | <td> |
| 42 | <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#compareAndSet(kotlin.Any,kotlin.Any)">compareAndSet</a>(expect: V, newValue: V)</code></div> |
| 43 | </td> |
| 44 | </tr> |
| 45 | <tr> |
| 46 | <td width="40%"><code>V</code></td> |
| 47 | <td> |
| 48 | <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#get()">get</a>()</code></div> |
| 49 | </td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td width="40%"><code>V</code></td> |
| 53 | <td> |
| 54 | <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#getAndSet(kotlin.Any)">getAndSet</a>(value: V)</code></div> |
| 55 | </td> |
| 56 | </tr> |
| 57 | <tr> |
| 58 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td> |
| 59 | <td> |
| 60 | <div><code><a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#set(kotlin.Any)">set</a>(value: V)</code></div> |
| 61 | </td> |
| 62 | </tr> |
| 63 | </tbody> |
| 64 | </table> |
| 65 | </div> |
| 66 | <h2>Public constructors</h2> |
| 67 | <div><a name="AtomicReference-kotlin.Any-"></a><a name="atomicreference"></a> |
| 68 | <h3 class="api-name" id="AtomicReference(kotlin.Any)">AtomicReference</h3> |
| 69 | <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> |
| 70 | </div> |
| 71 | <h2>Public functions</h2> |
| 72 | <div><a name="compareAndSet(kotlin.Any, kotlin.Any)"></a><a name="compareAndSet-kotlin.Any-kotlin.Any-"></a><a name="compareandset"></a> |
| 73 | <h3 class="api-name" id="compareAndSet(kotlin.Any,kotlin.Any)">compareAndSet</h3> |
| 74 | <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> |
| 75 | </div> |
| 76 | <div><a name="get--"></a><a name="get"></a> |
| 77 | <h3 class="api-name" id="get()">get</h3> |
| 78 | <pre class="api-signature no-pretty-print">fun <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#get()">get</a>(): V</pre> |
| 79 | </div> |
| 80 | <div><a name="getAndSet-kotlin.Any-"></a><a name="getandset"></a> |
| 81 | <h3 class="api-name" id="getAndSet(kotlin.Any)">getAndSet</h3> |
| 82 | <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> |
| 83 | </div> |
| 84 | <div><a name="set-kotlin.Any-"></a><a name="set"></a> |
| 85 | <h3 class="api-name" id="set(kotlin.Any)">set</h3> |
| 86 | <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> |
| 87 | </div> |
| 88 | </body> |
| 89 | </html> |