blob: f0a2bb5a6d90269ae4ed9ce01c97f8d4e9421138 [file] [log] [blame]
<html devsite="true">
<head>
<title>SnapshotStateList</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div id="metadata-info-block"></div>
<h1>SnapshotStateList</h1>
<p>
<pre>public final class <a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html">SnapshotStateList</a>&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt; implements <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>, <a href="/reference/androidx/compose/runtime/snapshots/StateObject.html">StateObject</a></pre>
</p>
<hr>
<p>An implementation of <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a></code> that can be observed and snapshot. This is the result type created by <code><a href="/reference/androidx/compose/runtime/package-summary.html#mutableStateListOf()">androidx.compose.runtime.mutableStateListOf</a></code>.</p>
<p>This class closely implements the same semantics as <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-array-list/index.html">ArrayList</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%">See also</th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><code><a href="/reference/androidx/compose/runtime/package-summary.html#mutableStateListOf()">mutableStateListOf</a></code></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public fields</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a></code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#firstStateRecord()">firstStateRecord</a></code></div>
<p>The first state record in a linked list of state records.</p>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#size()">size</a></code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public constructors</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td>
<div><code>&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt; <a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#SnapshotStateList()">SnapshotStateList</a>()</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<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>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#add(kotlin.Any)">add</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#add(kotlin.Int,kotlin.Any)">add</a>(int&nbsp;index,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#addAll(kotlin.collections.Collection)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#addAll(kotlin.Int,kotlin.collections.Collection)">addAll</a>(int&nbsp;index,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#clear()">clear</a>()</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#contains(kotlin.Any)">contains</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#containsAll(kotlin.collections.Collection)">containsAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#get(kotlin.Int)">get</a>(int&nbsp;index)</code></div>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#indexOf(kotlin.Any)">indexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#isEmpty()">isEmpty</a>()</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Iterator.html">Iterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#iterator()">iterator</a>()</code></div>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#lastIndexOf(kotlin.Any)">lastIndexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/ListIterator.html">ListIterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#listIterator()">listIterator</a>()</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/ListIterator.html">ListIterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#listIterator(kotlin.Int)">listIterator</a>(int&nbsp;index)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#prependStateRecord(androidx.compose.runtime.snapshots.StateRecord)">prependStateRecord</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a>&nbsp;value)</code></div>
<p>Add a new state record to the beginning of a list.</p>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#remove(kotlin.Any)">remove</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#removeAll(kotlin.collections.Collection)">removeAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#removeAt(kotlin.Int)">removeAt</a>(int&nbsp;index)</code></div>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#removeRange(kotlin.Int,kotlin.Int)">removeRange</a>(int&nbsp;fromIndex,&nbsp;int&nbsp;toIndex)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#retainAll(kotlin.collections.Collection)">retainAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#set(kotlin.Int,kotlin.Any)">set</a>(int&nbsp;index,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#subList(kotlin.Int,kotlin.Int)">subList</a>(int&nbsp;fromIndex,&nbsp;int&nbsp;toIndex)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive" id="inhmethods">
<thead>
<tr>
<th colspan="100%"><h3>Inherited methods</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html">kotlin.collections.Collection</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/stream/Stream.html">Stream</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/util/Collection.html#parallelStream()">parallelStream</a>()</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/stream/Stream.html">Stream</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/util/Collection.html#stream()">stream</a>()</code></div>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T[]</code></td>
<td>
<div><code>&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt; <span><del><a href="https://developer.android.com/reference/java/util/Collection.html#toArray(java.util.function.IntFunction[kotlin.Array[TypeParam(bounds=[kotlin.Any])]])">toArray</a></del></span>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/function/IntFunction.html">IntFunction</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T[]&gt;&nbsp;p0)</code></div>
<p><strong>This method is deprecated.</strong> This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">kotlin.collections.Iterable</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code>void</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/lang/Iterable.html#forEach(java.util.function.Consumer[TypeParam(bounds=[kotlin.Any?])])">forEach</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/function/Consumer.html">Consumer</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;p0)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">kotlin.collections.List</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Spliterator.html">Spliterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/util/List.html#spliterator()">spliterator</a>()</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html">kotlin.collections.MutableCollection</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code>boolean</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/util/Collection.html#removeIf(java.util.function.Predicate[TypeParam(bounds=[kotlin.Any?])])">removeIf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/function/Predicate.html">Predicate</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;p0)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">kotlin.collections.MutableList</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code>void</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/util/List.html#replaceAll(java.util.function.UnaryOperator[TypeParam(bounds=[kotlin.Any?])])">replaceAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/function/UnaryOperator.html">UnaryOperator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;p0)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td>
<div><code><a href="https://developer.android.com/reference/java/util/List.html#sort(java.util.Comparator[TypeParam(bounds=[kotlin.Any?])])">sort</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Comparator.html">Comparator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;p0)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="/reference/androidx/compose/runtime/snapshots/StateObject.html">androidx.compose.runtime.snapshots.StateObject</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<tbody class="list">
<tr>
<td><code><a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a></code></td>
<td>
<div><code><a href="/reference/androidx/compose/runtime/snapshots/StateObject.html#mergeRecords(androidx.compose.runtime.snapshots.StateRecord,androidx.compose.runtime.snapshots.StateRecord,androidx.compose.runtime.snapshots.StateRecord)">mergeRecords</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a>&nbsp;previous,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a>&nbsp;current,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a>&nbsp;applied<br>)</code></div>
<p>Produce a merged state based on the conflicting state changes.</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<div class="list">
<h2>Public fields</h2>
<div class="api-item"><a name="getFirstStateRecord()"></a><a name="setFirstStateRecord()"></a><a name="getFirstStateRecord--"></a><a name="setFirstStateRecord--"></a>
<h3 class="api-name" id="firstStateRecord()">firstStateRecord</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a>&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#firstStateRecord()">firstStateRecord</a></pre>
<p>The first state record in a linked list of state records.</p>
</div>
<div class="api-item"><a name="getSize()"></a><a name="setSize()"></a><a name="getSize--"></a><a name="setSize--"></a>
<h3 class="api-name" id="size()">size</h3>
<pre class="api-signature no-pretty-print">public&nbsp;int&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#size()">size</a></pre>
</div>
</div>
<div class="list">
<h2>Public constructors</h2>
<div class="api-item"><a name="SnapshotStateList--"></a><a name="snapshotstatelist"></a>
<h3 class="api-name" id="SnapshotStateList()">SnapshotStateList</h3>
<pre class="api-signature no-pretty-print">public&nbsp;&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt; <a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#SnapshotStateList()">SnapshotStateList</a>()</pre>
</div>
</div>
<div class="list">
<h2>Public methods</h2>
<div class="api-item"><a name="add-kotlin.Any-"></a><a name="add"></a>
<h3 class="api-name" id="add(kotlin.Any)">add</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#add(kotlin.Any)">add</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="add(kotlin.Int, kotlin.Any)"></a><a name="add-kotlin.Int-kotlin.Any-"></a><a name="add"></a>
<h3 class="api-name" id="add(kotlin.Int,kotlin.Any)">add</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#add(kotlin.Int,kotlin.Any)">add</a>(int&nbsp;index,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="addAll-kotlin.collections.Collection-"></a><a name="addall"></a>
<h3 class="api-name" id="addAll(kotlin.collections.Collection)">addAll</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#addAll(kotlin.collections.Collection)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</pre>
</div>
<div class="api-item"><a name="addAll(kotlin.Int, kotlin.collections.Collection)"></a><a name="addAll-kotlin.Int-kotlin.collections.Collection-"></a><a name="addall"></a>
<h3 class="api-name" id="addAll(kotlin.Int,kotlin.collections.Collection)">addAll</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#addAll(kotlin.Int,kotlin.collections.Collection)">addAll</a>(int&nbsp;index,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</pre>
</div>
<div class="api-item"><a name="clear--"></a><a name="clear"></a>
<h3 class="api-name" id="clear()">clear</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#clear()">clear</a>()</pre>
</div>
<div class="api-item"><a name="contains-kotlin.Any-"></a><a name="contains"></a>
<h3 class="api-name" id="contains(kotlin.Any)">contains</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#contains(kotlin.Any)">contains</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="containsAll-kotlin.collections.Collection-"></a><a name="containsall"></a>
<h3 class="api-name" id="containsAll(kotlin.collections.Collection)">containsAll</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#containsAll(kotlin.collections.Collection)">containsAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</pre>
</div>
<div class="api-item"><a name="get-kotlin.Int-"></a><a name="get"></a>
<h3 class="api-name" id="get(kotlin.Int)">get</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#get(kotlin.Int)">get</a>(int&nbsp;index)</pre>
</div>
<div class="api-item"><a name="indexOf-kotlin.Any-"></a><a name="indexof"></a>
<h3 class="api-name" id="indexOf(kotlin.Any)">indexOf</h3>
<pre class="api-signature no-pretty-print">public&nbsp;int&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#indexOf(kotlin.Any)">indexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="isEmpty--"></a><a name="isempty"></a>
<h3 class="api-name" id="isEmpty()">isEmpty</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#isEmpty()">isEmpty</a>()</pre>
</div>
<div class="api-item"><a name="iterator--"></a><a name="iterator"></a>
<h3 class="api-name" id="iterator()">iterator</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Iterator.html">Iterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#iterator()">iterator</a>()</pre>
</div>
<div class="api-item"><a name="lastIndexOf-kotlin.Any-"></a><a name="lastindexof"></a>
<h3 class="api-name" id="lastIndexOf(kotlin.Any)">lastIndexOf</h3>
<pre class="api-signature no-pretty-print">public&nbsp;int&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#lastIndexOf(kotlin.Any)">lastIndexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="listIterator--"></a><a name="listiterator"></a>
<h3 class="api-name" id="listIterator()">listIterator</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/ListIterator.html">ListIterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#listIterator()">listIterator</a>()</pre>
</div>
<div class="api-item"><a name="listIterator-kotlin.Int-"></a><a name="listiterator"></a>
<h3 class="api-name" id="listIterator(kotlin.Int)">listIterator</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/ListIterator.html">ListIterator</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#listIterator(kotlin.Int)">listIterator</a>(int&nbsp;index)</pre>
</div>
<div class="api-item"><a name="prependStateRecord-androidx.compose.runtime.snapshots.StateRecord-"></a><a name="prependstaterecord"></a>
<h3 class="api-name" id="prependStateRecord(androidx.compose.runtime.snapshots.StateRecord)">prependStateRecord</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#prependStateRecord(androidx.compose.runtime.snapshots.StateRecord)">prependStateRecord</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/snapshots/StateRecord.html">StateRecord</a>&nbsp;value)</pre>
<p>Add a new state record to the beginning of a list. After this call <code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#firstStateRecord()">firstStateRecord</a></code> should be <code><a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#prependStateRecord(androidx.compose.runtime.snapshots.StateRecord)">value</a></code>.</p>
</div>
<div class="api-item"><a name="remove-kotlin.Any-"></a><a name="remove"></a>
<h3 class="api-name" id="remove(kotlin.Any)">remove</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#remove(kotlin.Any)">remove</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="removeAll-kotlin.collections.Collection-"></a><a name="removeall"></a>
<h3 class="api-name" id="removeAll(kotlin.collections.Collection)">removeAll</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#removeAll(kotlin.collections.Collection)">removeAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</pre>
</div>
<div class="api-item"><a name="removeAt-kotlin.Int-"></a><a name="removeat"></a>
<h3 class="api-name" id="removeAt(kotlin.Int)">removeAt</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#removeAt(kotlin.Int)">removeAt</a>(int&nbsp;index)</pre>
</div>
<div class="api-item"><a name="removeRange(kotlin.Int, kotlin.Int)"></a><a name="removeRange-kotlin.Int-kotlin.Int-"></a><a name="removerange"></a>
<h3 class="api-name" id="removeRange(kotlin.Int,kotlin.Int)">removeRange</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;void&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#removeRange(kotlin.Int,kotlin.Int)">removeRange</a>(int&nbsp;fromIndex,&nbsp;int&nbsp;toIndex)</pre>
</div>
<div class="api-item"><a name="retainAll-kotlin.collections.Collection-"></a><a name="retainall"></a>
<h3 class="api-name" id="retainAll(kotlin.collections.Collection)">retainAll</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#retainAll(kotlin.collections.Collection)">retainAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;elements)</pre>
</div>
<div class="api-item"><a name="set(kotlin.Int, kotlin.Any)"></a><a name="set-kotlin.Int-kotlin.Any-"></a><a name="set"></a>
<h3 class="api-name" id="set(kotlin.Int,kotlin.Any)">set</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#set(kotlin.Int,kotlin.Any)">set</a>(int&nbsp;index,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&nbsp;element)</pre>
</div>
<div class="api-item"><a name="subList(kotlin.Int, kotlin.Int)"></a><a name="subList-kotlin.Int-kotlin.Int-"></a><a name="sublist"></a>
<h3 class="api-name" id="subList(kotlin.Int,kotlin.Int)">subList</h3>
<pre class="api-signature no-pretty-print">public&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a>&lt;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T&gt;&nbsp;<a href="/reference/androidx/compose/runtime/snapshots/SnapshotStateList.html#subList(kotlin.Int,kotlin.Int)">subList</a>(int&nbsp;fromIndex,&nbsp;int&nbsp;toIndex)</pre>
</div>
</div>
</body>
</html>