| <html devsite="true"> |
| <head> |
| <title>MutableVector</title> |
| {% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} |
| {% include "_shared/_reference-head-tags.html" %} |
| </head> |
| <body> |
| <h1>MutableVector</h1> |
| <p> |
| <pre>public final class MutableVector<T extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>></pre> |
| </p> |
| <hr> |
| <p>A <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a></code>-like structure with a simplified interface that offers faster access than <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-array-list/index.html">ArrayList</a></code>.</p> |
| <h2>Summary</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="2"><h3>Public fields</h3></th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-int-range/index.html">IntRange</a></code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indices()">indices</a></code></div> |
| <p>Returns an <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-int-range/index.html">IntRange</a></code> of the valid indices for this <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastIndex()">lastIndex</a></code></div> |
| <p>Returns the last valid index in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#size()">size</a></code></div> |
| <p>The number of elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="2"><h3>Public methods</h3></th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Any)">add</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Adds <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Any)">element</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Int,kotlin.Any)">add</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Adds <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Int,kotlin.Any)">element</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Int,kotlin.Any)">index</a></code>, shifting over any elements that are in the way.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.List)">addAll</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.List)">elements</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.List)">index</a></code>, shifting over any elements that are in the way.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">addAll</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">elements</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">index</a></code>, shifting over any elements that are in the way.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.collections.List)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.collections.List)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(androidx.compose.runtime.collection.MutableVector)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(androidx.compose.runtime.collection.MutableVector)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Array)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T[] elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Array)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.Collection)">addAll</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.Collection)">elements</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.Collection)">index</a></code>, shifting over any elements that are in the way.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.collections.Collection)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#any(kotlin.Function1)">any</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns <code>true</code> if any of the elements give a <code>true</code> return value for <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#any(kotlin.Function1)">predicate</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T></code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#asMutableList()">asMutableList</a>()</code></div> |
| <p>Returns <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a></code> interface access to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#clear()">clear</a>()</code></div> |
| <p>Removes all elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#contains(kotlin.Any)">contains</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#contains(kotlin.Any)">element</a></code> or <code>false</code> otherwise.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(kotlin.collections.List)">containsAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains all elements in <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(kotlin.collections.List)">elements</a></code> or <code>false</code> if one or more are missing.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains all elements in <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(kotlin.collections.Collection)">elements</a></code> or <code>false</code> if one or more are missing.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(androidx.compose.runtime.collection.MutableVector)">containsAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains all elements in <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(androidx.compose.runtime.collection.MutableVector)">elements</a></code> or <code>false</code> if one or more are missing.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#contentEquals(androidx.compose.runtime.collection.MutableVector)">contentEquals</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> other)</code></div> |
| <p>Returns <code>true</code> if the contents of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> are the same or <code>false</code> if there is any difference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#ensureCapacity(kotlin.Int)">ensureCapacity</a>(int capacity)</code></div> |
| <p>Ensures that there is enough space to store <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#ensureCapacity(kotlin.Int)">capacity</a></code> elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#first()">first</a>()</code></div> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or throws a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#first(kotlin.Function1)">first</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#first(kotlin.Function1)">predicate</a></code> returns <code>true</code> or throws <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if nothing matches.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#firstOrNull()">firstOrNull</a>()</code></div> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>null</code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#firstOrNull(kotlin.Function1)">firstOrNull</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#firstOrNull(kotlin.Function1)">predicate</a></code> returns <code>true</code> or returns <code>null</code> if nothing matches.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R</code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#fold(kotlin.Any,kotlin.Function2)">fold</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</code></div> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#fold(kotlin.Any,kotlin.Function2)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#fold(kotlin.Any,kotlin.Function2)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R</code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldIndexed(kotlin.Any,kotlin.Function3)">foldIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function3<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</code></div> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldIndexed(kotlin.Any,kotlin.Function3)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldIndexed(kotlin.Any,kotlin.Function3)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R</code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRight(kotlin.Any,kotlin.Function2)">foldRight</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</code></div> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRight(kotlin.Any,kotlin.Function2)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRight(kotlin.Any,kotlin.Function2)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in reverse order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R</code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRightIndexed(kotlin.Any,kotlin.Function3)">foldRightIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function3<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</code></div> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRightIndexed(kotlin.Any,kotlin.Function3)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRightIndexed(kotlin.Any,kotlin.Function3)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in reverse order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEach(kotlin.Function1)">forEach</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block)</code></div> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEach(kotlin.Function1)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>, in order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachIndexed(kotlin.Function2)">forEachIndexed</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block)</code></div> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachIndexed(kotlin.Function2)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> along with its index, in order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversed(kotlin.Function1)">forEachReversed</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block)</code></div> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversed(kotlin.Function1)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in reverse order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversedIndexed(kotlin.Function2)">forEachReversedIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block<br>)</code></div> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversedIndexed(kotlin.Function2)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> along with its index, in reverse order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#get(kotlin.Int)">get</a>(int index)</code></div> |
| <p>Returns the element at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#get(kotlin.Int)">index</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOf(kotlin.Any)">indexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Returns the index of <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOf(kotlin.Any)">element</a></code> in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>-1</code> if <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOf(kotlin.Any)">element</a></code> is not there.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfFirst(kotlin.Function1)">indexOfFirst</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns the index if the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfFirst(kotlin.Function1)">predicate</a></code> returns <code>true</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfLast(kotlin.Function1)">indexOfLast</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns the index if the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfLast(kotlin.Function1)">predicate</a></code> returns <code>true</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a>()</code></div> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> has no elements in it or <code>false</code> otherwise.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isNotEmpty()">isNotEmpty</a>()</code></div> |
| <p>Returns <code>true</code> if there are elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>false</code> if it is empty.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#last()">last</a>()</code></div> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or throws a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#last(kotlin.Function1)">last</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#last(kotlin.Function1)">predicate</a></code> returns <code>true</code> or throws <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if nothing matches.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastIndexOf(kotlin.Any)">lastIndexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Returns the index of the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> that is the same as <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastIndexOf(kotlin.Any)">element</a></code> or <code>-1</code> if no elements match.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastOrNull()">lastOrNull</a>()</code></div> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>null</code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastOrNull(kotlin.Function1)">lastOrNull</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastOrNull(kotlin.Function1)">predicate</a></code> returns <code>true</code> or returns <code>null</code> if nothing matches.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R[]</code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#map(kotlin.Function1)">map</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> transform)</code></div> |
| <p>Returns an <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R[]</code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#mapIndexed(kotlin.Function2)">mapIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> transform<br>)</code></div> |
| <p>Returns an <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R></code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#mapIndexedNotNull(kotlin.Function2)">mapIndexedNotNull</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, R> transform<br>)</code></div> |
| <p>Returns an <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>, excluding those transformed values that are <code>null</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R></code></td> |
| <td> |
| <div><code><R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#mapNotNull(kotlin.Function1)">mapNotNull</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, R> transform)</code></div> |
| <p>Returns an <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>, excluding those transformed values that are <code>null</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#minusAssign(kotlin.Any)">minusAssign</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#minusAssign(kotlin.Any)">remove</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code></p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#plusAssign(kotlin.Any)">plusAssign</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#plusAssign(kotlin.Any)">add</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#remove(kotlin.Any)">remove</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Removes <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#remove(kotlin.Any)">element</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(kotlin.collections.List)">removeAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Removes all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(kotlin.collections.List)">elements</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if anything was removed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(androidx.compose.runtime.collection.MutableVector)">removeAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Removes all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(androidx.compose.runtime.collection.MutableVector)">elements</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if anything was removed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Removes all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(kotlin.collections.Collection)">elements</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if anything was removed.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAt(kotlin.Int)">removeAt</a>(int index)</code></div> |
| <p>Removes the element at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAt(kotlin.Int)">index</a></code> and returns it.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeRange(kotlin.Int,kotlin.Int)">removeRange</a>(int start, int end)</code></div> |
| <p>Removes items from index <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeRange(kotlin.Int,kotlin.Int)">start</a></code> (inclusive) to <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeRange(kotlin.Int,kotlin.Int)">end</a></code> (exclusive).</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</code></div> |
| <p>Keeps only <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#retainAll(kotlin.collections.Collection)">elements</a></code> in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and removes all other values.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#reversedAny(kotlin.Function1)">reversedAny</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</code></div> |
| <p>Returns <code>true</code> if any of the elements give a <code>true</code> return value for <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#reversedAny(kotlin.Function1)">predicate</a></code> while iterating in the reverse order.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#set(kotlin.Int,kotlin.Any)">set</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</code></div> |
| <p>Sets the value at <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#set(kotlin.Int,kotlin.Any)">index</a></code> to <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#set(kotlin.Int,kotlin.Any)">element</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final void</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sortWith(java.util.Comparator)">sortWith</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Comparator.html">Comparator</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> comparator)</code></div> |
| <p>Sorts the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> using <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sortWith(java.util.Comparator)">comparator</a></code> to order the items.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sumBy(kotlin.Function1)">sumBy</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>> selector)</code></div> |
| <p>Returns the sum of all values produced by <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sumBy(kotlin.Function1)">selector</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <h2>Public fields</h2> |
| <div><a name="getIndices()"></a><a name="setIndices()"></a><a name="getIndices--"></a><a name="setIndices--"></a> |
| <h3 class="api-name" id="indices()">indices</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-int-range/index.html">IntRange</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indices()">indices</a></pre> |
| <p>Returns an <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-int-range/index.html">IntRange</a></code> of the valid indices for this <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <div><a name="getLastIndex()"></a><a name="setLastIndex()"></a><a name="getLastIndex--"></a><a name="setLastIndex--"></a> |
| <h3 class="api-name" id="lastIndex()">lastIndex</h3> |
| <pre class="api-signature no-pretty-print">public final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastIndex()">lastIndex</a></pre> |
| <p>Returns the last valid index in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <div><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 final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#size()">size</a></pre> |
| <p>The number of elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <h2>Public methods</h2> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Any)">add</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Adds <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Any)">element</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code>.</p> |
| </div> |
| <div><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 final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Int,kotlin.Any)">add</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Adds <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Int,kotlin.Any)">element</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#add(kotlin.Int,kotlin.Any)">index</a></code>, shifting over any elements that are in the way.</p> |
| </div> |
| <div><a name="addAll(kotlin.Int, kotlin.collections.List)"></a><a name="addAll-kotlin.Int-kotlin.collections.List-"></a><a name="addall"></a> |
| <h3 class="api-name" id="addAll(kotlin.Int,kotlin.collections.List)">addAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.List)">addAll</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.List)">elements</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.List)">index</a></code>, shifting over any elements that are in the way.</p> |
| </div> |
| <div><a name="addAll(kotlin.Int, androidx.compose.runtime.collection.MutableVector)"></a><a name="addAll-kotlin.Int-androidx.compose.runtime.collection.MutableVector-"></a><a name="addall"></a> |
| <h3 class="api-name" id="addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">addAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">addAll</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">elements</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,androidx.compose.runtime.collection.MutableVector)">index</a></code>, shifting over any elements that are in the way.</p> |
| </div> |
| <div><a name="addAll-kotlin.collections.List-"></a><a name="addall"></a> |
| <h3 class="api-name" id="addAll(kotlin.collections.List)">addAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.collections.List)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.collections.List)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </div> |
| <div><a name="addAll-androidx.compose.runtime.collection.MutableVector-"></a><a name="addall"></a> |
| <h3 class="api-name" id="addAll(androidx.compose.runtime.collection.MutableVector)">addAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(androidx.compose.runtime.collection.MutableVector)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(androidx.compose.runtime.collection.MutableVector)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </div> |
| <div><a name="addAll-kotlin.Array-"></a><a name="addall"></a> |
| <h3 class="api-name" id="addAll(kotlin.Array)">addAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Array)">addAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T[] elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Array)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.Collection)">addAll</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Collection.html">Collection</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.Collection)">elements</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.Int,kotlin.collections.Collection)">index</a></code>, shifting over any elements that are in the way.</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Adds all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#addAll(kotlin.collections.Collection)">elements</a></code> to the end of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> was changed.</p> |
| </div> |
| <div><a name="any-kotlin.Function1-"></a><a name="any"></a> |
| <h3 class="api-name" id="any(kotlin.Function1)">any</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#any(kotlin.Function1)">any</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns <code>true</code> if any of the elements give a <code>true</code> return value for <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#any(kotlin.Function1)">predicate</a></code>.</p> |
| </div> |
| <div><a name="asMutableList--"></a><a name="asmutablelist"></a> |
| <h3 class="api-name" id="asMutableList()">asMutableList</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#asMutableList()">asMutableList</a>()</pre> |
| <p>Returns <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a></code> interface access to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <div><a name="clear--"></a><a name="clear"></a> |
| <h3 class="api-name" id="clear()">clear</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#clear()">clear</a>()</pre> |
| <p>Removes all elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#contains(kotlin.Any)">contains</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#contains(kotlin.Any)">element</a></code> or <code>false</code> otherwise.</p> |
| </div> |
| <div><a name="containsAll-kotlin.collections.List-"></a><a name="containsall"></a> |
| <h3 class="api-name" id="containsAll(kotlin.collections.List)">containsAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(kotlin.collections.List)">containsAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains all elements in <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(kotlin.collections.List)">elements</a></code> or <code>false</code> if one or more are missing.</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains all elements in <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(kotlin.collections.Collection)">elements</a></code> or <code>false</code> if one or more are missing.</p> |
| </div> |
| <div><a name="containsAll-androidx.compose.runtime.collection.MutableVector-"></a><a name="containsall"></a> |
| <h3 class="api-name" id="containsAll(androidx.compose.runtime.collection.MutableVector)">containsAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(androidx.compose.runtime.collection.MutableVector)">containsAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> contains all elements in <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#containsAll(androidx.compose.runtime.collection.MutableVector)">elements</a></code> or <code>false</code> if one or more are missing.</p> |
| </div> |
| <div><a name="contentEquals-androidx.compose.runtime.collection.MutableVector-"></a><a name="contentequals"></a> |
| <h3 class="api-name" id="contentEquals(androidx.compose.runtime.collection.MutableVector)">contentEquals</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#contentEquals(androidx.compose.runtime.collection.MutableVector)">contentEquals</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> other)</pre> |
| <p>Returns <code>true</code> if the contents of the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> are the same or <code>false</code> if there is any difference. This uses equality comparisons on each element rather than reference equality.</p> |
| </div> |
| <div><a name="ensureCapacity-kotlin.Int-"></a><a name="ensurecapacity"></a> |
| <h3 class="api-name" id="ensureCapacity(kotlin.Int)">ensureCapacity</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#ensureCapacity(kotlin.Int)">ensureCapacity</a>(int capacity)</pre> |
| <p>Ensures that there is enough space to store <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#ensureCapacity(kotlin.Int)">capacity</a></code> elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <div><a name="first--"></a><a name="first"></a> |
| <h3 class="api-name" id="first()">first</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#first()">first</a>()</pre> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or throws a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </div> |
| <div><a name="first-kotlin.Function1-"></a><a name="first"></a> |
| <h3 class="api-name" id="first(kotlin.Function1)">first</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#first(kotlin.Function1)">first</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#first(kotlin.Function1)">predicate</a></code> returns <code>true</code> or throws <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if nothing matches.</p> |
| </div> |
| <div><a name="firstOrNull--"></a><a name="firstornull"></a> |
| <h3 class="api-name" id="firstOrNull()">firstOrNull</h3> |
| <pre class="api-signature no-pretty-print">public final T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#firstOrNull()">firstOrNull</a>()</pre> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>null</code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </div> |
| <div><a name="firstOrNull-kotlin.Function1-"></a><a name="firstornull"></a> |
| <h3 class="api-name" id="firstOrNull(kotlin.Function1)">firstOrNull</h3> |
| <pre class="api-signature no-pretty-print">public final T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#firstOrNull(kotlin.Function1)">firstOrNull</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#firstOrNull(kotlin.Function1)">predicate</a></code> returns <code>true</code> or returns <code>null</code> if nothing matches.</p> |
| </div> |
| <div><a name="fold(kotlin.Any, kotlin.Function2)"></a><a name="fold-kotlin.Any-kotlin.Function2-"></a><a name="fold"></a> |
| <h3 class="api-name" id="fold(kotlin.Any,kotlin.Function2)">fold</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#fold(kotlin.Any,kotlin.Function2)">fold</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</pre> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#fold(kotlin.Any,kotlin.Function2)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#fold(kotlin.Any,kotlin.Function2)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in order.</p> |
| </div> |
| <div><a name="foldIndexed(kotlin.Any, kotlin.Function3)"></a><a name="foldIndexed-kotlin.Any-kotlin.Function3-"></a><a name="foldindexed"></a> |
| <h3 class="api-name" id="foldIndexed(kotlin.Any,kotlin.Function3)">foldIndexed</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldIndexed(kotlin.Any,kotlin.Function3)">foldIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function3<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</pre> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldIndexed(kotlin.Any,kotlin.Function3)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldIndexed(kotlin.Any,kotlin.Function3)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in order.</p> |
| </div> |
| <div><a name="foldRight(kotlin.Any, kotlin.Function2)"></a><a name="foldRight-kotlin.Any-kotlin.Function2-"></a><a name="foldright"></a> |
| <h3 class="api-name" id="foldRight(kotlin.Any,kotlin.Function2)">foldRight</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRight(kotlin.Any,kotlin.Function2)">foldRight</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</pre> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRight(kotlin.Any,kotlin.Function2)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRight(kotlin.Any,kotlin.Function2)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in reverse order.</p> |
| </div> |
| <div><a name="foldRightIndexed(kotlin.Any, kotlin.Function3)"></a><a name="foldRightIndexed-kotlin.Any-kotlin.Function3-"></a><a name="foldrightindexed"></a> |
| <h3 class="api-name" id="foldRightIndexed(kotlin.Any,kotlin.Function3)">foldRightIndexed</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRightIndexed(kotlin.Any,kotlin.Function3)">foldRightIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R initial,<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function3<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> acc, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> operation<br>)</pre> |
| <p>Accumulates values, starting with <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRightIndexed(kotlin.Any,kotlin.Function3)">initial</a></code>, and applying <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#foldRightIndexed(kotlin.Any,kotlin.Function3)">operation</a></code> to each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in reverse order.</p> |
| </div> |
| <div><a name="forEach-kotlin.Function1-"></a><a name="foreach"></a> |
| <h3 class="api-name" id="forEach(kotlin.Function1)">forEach</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEach(kotlin.Function1)">forEach</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block)</pre> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEach(kotlin.Function1)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>, in order.</p> |
| </div> |
| <div><a name="forEachIndexed-kotlin.Function2-"></a><a name="foreachindexed"></a> |
| <h3 class="api-name" id="forEachIndexed(kotlin.Function2)">forEachIndexed</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachIndexed(kotlin.Function2)">forEachIndexed</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block)</pre> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachIndexed(kotlin.Function2)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> along with its index, in order.</p> |
| </div> |
| <div><a name="forEachReversed-kotlin.Function1-"></a><a name="foreachreversed"></a> |
| <h3 class="api-name" id="forEachReversed(kotlin.Function1)">forEachReversed</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversed(kotlin.Function1)">forEachReversed</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block)</pre> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversed(kotlin.Function1)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> in reverse order.</p> |
| </div> |
| <div><a name="forEachReversedIndexed-kotlin.Function2-"></a><a name="foreachreversedindexed"></a> |
| <h3 class="api-name" id="forEachReversedIndexed(kotlin.Function2)">forEachReversedIndexed</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversedIndexed(kotlin.Function2)">forEachReversedIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>> block<br>)</pre> |
| <p>Calls <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#forEachReversedIndexed(kotlin.Function2)">block</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> along with its index, in reverse order.</p> |
| </div> |
| <div><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 final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#get(kotlin.Int)">get</a>(int index)</pre> |
| <p>Returns the element at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#get(kotlin.Int)">index</a></code>.</p> |
| </div> |
| <div><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 final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOf(kotlin.Any)">indexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Returns the index of <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOf(kotlin.Any)">element</a></code> in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>-1</code> if <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOf(kotlin.Any)">element</a></code> is not there.</p> |
| </div> |
| <div><a name="indexOfFirst-kotlin.Function1-"></a><a name="indexoffirst"></a> |
| <h3 class="api-name" id="indexOfFirst(kotlin.Function1)">indexOfFirst</h3> |
| <pre class="api-signature no-pretty-print">public final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfFirst(kotlin.Function1)">indexOfFirst</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns the index if the first element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfFirst(kotlin.Function1)">predicate</a></code> returns <code>true</code>.</p> |
| </div> |
| <div><a name="indexOfLast-kotlin.Function1-"></a><a name="indexoflast"></a> |
| <h3 class="api-name" id="indexOfLast(kotlin.Function1)">indexOfLast</h3> |
| <pre class="api-signature no-pretty-print">public final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfLast(kotlin.Function1)">indexOfLast</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns the index if the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#indexOfLast(kotlin.Function1)">predicate</a></code> returns <code>true</code>.</p> |
| </div> |
| <div><a name="isEmpty--"></a><a name="isempty"></a> |
| <h3 class="api-name" id="isEmpty()">isEmpty</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a>()</pre> |
| <p>Returns <code>true</code> if the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> has no elements in it or <code>false</code> otherwise.</p> |
| </div> |
| <div><a name="isNotEmpty--"></a><a name="isnotempty"></a> |
| <h3 class="api-name" id="isNotEmpty()">isNotEmpty</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isNotEmpty()">isNotEmpty</a>()</pre> |
| <p>Returns <code>true</code> if there are elements in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>false</code> if it is empty.</p> |
| </div> |
| <div><a name="last--"></a><a name="last"></a> |
| <h3 class="api-name" id="last()">last</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#last()">last</a>()</pre> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or throws a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </div> |
| <div><a name="last-kotlin.Function1-"></a><a name="last"></a> |
| <h3 class="api-name" id="last(kotlin.Function1)">last</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#last(kotlin.Function1)">last</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#last(kotlin.Function1)">predicate</a></code> returns <code>true</code> or throws <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-no-such-element-exception/index.html">NoSuchElementException</a></code> if nothing matches.</p> |
| </div> |
| <div><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 final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastIndexOf(kotlin.Any)">lastIndexOf</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Returns the index of the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> that is the same as <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastIndexOf(kotlin.Any)">element</a></code> or <code>-1</code> if no elements match.</p> |
| </div> |
| <div><a name="lastOrNull--"></a><a name="lastornull"></a> |
| <h3 class="api-name" id="lastOrNull()">lastOrNull</h3> |
| <pre class="api-signature no-pretty-print">public final T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastOrNull()">lastOrNull</a>()</pre> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> or <code>null</code> if it <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#isEmpty()">isEmpty</a></code>.</p> |
| </div> |
| <div><a name="lastOrNull-kotlin.Function1-"></a><a name="lastornull"></a> |
| <h3 class="api-name" id="lastOrNull(kotlin.Function1)">lastOrNull</h3> |
| <pre class="api-signature no-pretty-print">public final T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastOrNull(kotlin.Function1)">lastOrNull</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns the last element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> for which <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#lastOrNull(kotlin.Function1)">predicate</a></code> returns <code>true</code> or returns <code>null</code> if nothing matches.</p> |
| </div> |
| <div><a name="map-kotlin.Function1-"></a><a name="map"></a> |
| <h3 class="api-name" id="map(kotlin.Function1)">map</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R[] <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#map(kotlin.Function1)">map</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> transform)</pre> |
| <p>Returns an <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>. The Array will be the same size as this.</p> |
| </div> |
| <div><a name="mapIndexed-kotlin.Function2-"></a><a name="mapindexed"></a> |
| <h3 class="api-name" id="mapIndexed(kotlin.Function2)">mapIndexed</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R[] <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#mapIndexed(kotlin.Function2)">mapIndexed</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> transform<br>)</pre> |
| <p>Returns an <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>. The Array will be the same size as this.</p> |
| </div> |
| <div><a name="mapIndexedNotNull-kotlin.Function2-"></a><a name="mapindexednotnull"></a> |
| <h3 class="api-name" id="mapIndexedNotNull(kotlin.Function2)">mapIndexedNotNull</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#mapIndexedNotNull(kotlin.Function2)">mapIndexedNotNull</a>(<br> @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function2<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, R> transform<br>)</pre> |
| <p>Returns an <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>, excluding those transformed values that are <code>null</code>.</p> |
| </div> |
| <div><a name="mapNotNull-kotlin.Function1-"></a><a name="mapnotnull"></a> |
| <h3 class="api-name" id="mapNotNull(kotlin.Function1)">mapNotNull</h3> |
| <pre class="api-signature no-pretty-print">public final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> R> <R extends <a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#mapNotNull(kotlin.Function1)">mapNotNull</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, R> transform)</pre> |
| <p>Returns an <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> of results of transforming each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>, excluding those transformed values that are <code>null</code>.</p> |
| </div> |
| <div><a name="minusAssign-kotlin.Any-"></a><a name="minusassign"></a> |
| <h3 class="api-name" id="minusAssign(kotlin.Any)">minusAssign</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#minusAssign(kotlin.Any)">minusAssign</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#minusAssign(kotlin.Any)">remove</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code></p> |
| </div> |
| <div><a name="plusAssign-kotlin.Any-"></a><a name="plusassign"></a> |
| <h3 class="api-name" id="plusAssign(kotlin.Any)">plusAssign</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#plusAssign(kotlin.Any)">plusAssign</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p><code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#plusAssign(kotlin.Any)">add</a></code> to the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#remove(kotlin.Any)">remove</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Removes <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#remove(kotlin.Any)">element</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>. If <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#remove(kotlin.Any)">element</a></code> was in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and was removed, <code>true</code> will be returned, or <code>false</code> will be returned if the element was not found.</p> |
| </div> |
| <div><a name="removeAll-kotlin.collections.List-"></a><a name="removeall"></a> |
| <h3 class="api-name" id="removeAll(kotlin.collections.List)">removeAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(kotlin.collections.List)">removeAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/List.html">List</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Removes all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(kotlin.collections.List)">elements</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if anything was removed.</p> |
| </div> |
| <div><a name="removeAll-androidx.compose.runtime.collection.MutableVector-"></a><a name="removeall"></a> |
| <h3 class="api-name" id="removeAll(androidx.compose.runtime.collection.MutableVector)">removeAll</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(androidx.compose.runtime.collection.MutableVector)">removeAll</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Removes all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(androidx.compose.runtime.collection.MutableVector)">elements</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if anything was removed.</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Removes all <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAll(kotlin.collections.Collection)">elements</a></code> from the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and returns <code>true</code> if anything was removed.</p> |
| </div> |
| <div><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 final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAt(kotlin.Int)">removeAt</a>(int index)</pre> |
| <p>Removes the element at the given <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeAt(kotlin.Int)">index</a></code> and returns it.</p> |
| </div> |
| <div><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 final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeRange(kotlin.Int,kotlin.Int)">removeRange</a>(int start, int end)</pre> |
| <p>Removes items from index <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeRange(kotlin.Int,kotlin.Int)">start</a></code> (inclusive) to <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#removeRange(kotlin.Int,kotlin.Int)">end</a></code> (exclusive).</p> |
| </div> |
| <div><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 final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.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><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> elements)</pre> |
| <p>Keeps only <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#retainAll(kotlin.collections.Collection)">elements</a></code> in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> and removes all other values.</p> |
| </div> |
| <div><a name="reversedAny-kotlin.Function1-"></a><a name="reversedany"></a> |
| <h3 class="api-name" id="reversedAny(kotlin.Function1)">reversedAny</h3> |
| <pre class="api-signature no-pretty-print">public final boolean <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#reversedAny(kotlin.Function1)">reversedAny</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Boolean.html">Boolean</a>> predicate)</pre> |
| <p>Returns <code>true</code> if any of the elements give a <code>true</code> return value for <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#reversedAny(kotlin.Function1)">predicate</a></code> while iterating in the reverse order.</p> |
| </div> |
| <div><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 final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#set(kotlin.Int,kotlin.Any)">set</a>(int index, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T element)</pre> |
| <p>Sets the value at <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#set(kotlin.Int,kotlin.Any)">index</a></code> to <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#set(kotlin.Int,kotlin.Any)">element</a></code>.</p> |
| </div> |
| <div><a name="sortWith-java.util.Comparator-"></a><a name="sortwith"></a> |
| <h3 class="api-name" id="sortWith(java.util.Comparator)">sortWith</h3> |
| <pre class="api-signature no-pretty-print">public final void <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sortWith(java.util.Comparator)">sortWith</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/util/Comparator.html">Comparator</a><@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T> comparator)</pre> |
| <p>Sorts the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code> using <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sortWith(java.util.Comparator)">comparator</a></code> to order the items.</p> |
| </div> |
| <div><a name="sumBy-kotlin.Function1-"></a><a name="sumby"></a> |
| <h3 class="api-name" id="sumBy(kotlin.Function1)">sumBy</h3> |
| <pre class="api-signature no-pretty-print">public final int <a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sumBy(kotlin.Function1)">sumBy</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> Function1<@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> T, @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/Integer.html">Integer</a>> selector)</pre> |
| <p>Returns the sum of all values produced by <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html#sumBy(kotlin.Function1)">selector</a></code> for each element in the <code><a href="/reference/androidx/compose/runtime/collection/MutableVector.html">MutableVector</a></code>.</p> |
| </div> |
| </body> |
| </html> |