blob: fad6ef034c9c5431752b3b0217d949ef58cafbb2 [file] [log] [blame]
Tiem Song6fed3de2021-06-14 14:48:10 -07001<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 Song6f896de2022-11-03 14:55:52 -07008 <div id="metadata-info-block"></div>
Tiem Song6fed3de2021-06-14 14:48:10 -07009 <h1>AtomicReference</h1>
Tiem Song6fed3de2021-06-14 14:48:10 -070010 <p>
Owen Gray22f20572022-08-08 13:48:02 -040011 <pre>class <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html">AtomicReference</a>&lt;V&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt;</pre>
Tiem Song6fed3de2021-06-14 14:48:10 -070012 </p>
13 <hr>
14 <h2>Summary</h2>
15 <div class="devsite-table-wrapper">
16 <table class="responsive">
17 <thead>
18 <tr>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040019 <th colspan="100%"><h3>Public constructors</h3></th>
Tiem Song6fed3de2021-06-14 14:48:10 -070020 </tr>
21 </thead>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040022 <tbody class="list">
Tiem Song6fed3de2021-06-14 14:48:10 -070023 <tr>
24 <td>
25 <div><code>&lt;V&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt; <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#AtomicReference(kotlin.Any)">AtomicReference</a>(value:&nbsp;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 Falcone80f1a8f2022-08-23 11:22:33 -040035 <th colspan="100%"><h3>Public functions</h3></th>
Tiem Song6fed3de2021-06-14 14:48:10 -070036 </tr>
37 </thead>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040038 <tbody class="list">
Tiem Song6fed3de2021-06-14 14:48:10 -070039 <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:&nbsp;V,&nbsp;newValue:&nbsp;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:&nbsp;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:&nbsp;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">&lt;V&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt; <a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#AtomicReference(kotlin.Any)">AtomicReference</a>(value:&nbsp;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&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#compareAndSet(kotlin.Any,kotlin.Any)">compareAndSet</a>(expect:&nbsp;V,&nbsp;newValue:&nbsp;V):&nbsp;<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&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#get()">get</a>():&nbsp;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&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#getAndSet(kotlin.Any)">getAndSet</a>(value:&nbsp;V):&nbsp;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&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#set(kotlin.Any)">set</a>(value:&nbsp;V):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
87 </div>
88 </body>
89</html>