blob: fad6ef034c9c5431752b3b0217d949ef58cafbb2 [file] [log] [blame]
<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>&lt;V&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt;</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>&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>
</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:&nbsp;V,&nbsp;newValue:&nbsp;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:&nbsp;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:&nbsp;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">&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>
</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&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>
</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&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#get()">get</a>():&nbsp;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&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/AtomicReference.html#getAndSet(kotlin.Any)">getAndSet</a>(value:&nbsp;V):&nbsp;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&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>
</div>
</body>
</html>