# A2uiFunctionCollection

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/catalog/A2uiFunctionCollection.kt+class:androidx.a2ui.model.catalog.A2uiFunctionCollection) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public sealed interface A2uiFunctionCollection extends List<@NonNull A2uiFunction>
```

<br />

*** ** * ** ***

An immutable, indexed collection of `https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction`s.

Provides list-based access that enables iterator-free iteration using indices, as well as lookup by function name using the index operator.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunctionCollection#get(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name)` Retrieves a function by its unique name. |

### Inherited methods

From [kotlin.collections.Collection](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-collection/index.html) `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/stream/Stream.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/util/Collection.html#parallelStream()()` `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/stream/Stream.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/util/Collection.html#stream()()` `default @https://developer.android.com/reference/androidx/annotation/NonNull T[]` `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/java/util/Collection.html#toArray(java.util.function.IntFunction&lt;T[]&gt;)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/function/IntFunction.html<@https://developer.android.com/reference/androidx/annotation/NonNull T[]> generator)` From [kotlin.collections.Iterable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterable/index.html) `default void` `https://developer.android.com/reference/java/lang/Iterable.html#forEach(java.util.function.Consumer&lt;? super T&gt;)(@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/function/Consumer.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction> action)` From [kotlin.collections.List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html) `abstract boolean` `https://developer.android.com/reference/java/util/List.html#contains(E)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction element)` `abstract boolean` `https://developer.android.com/reference/java/util/List.html#containsAll(kotlin.collections.Collection)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Collection.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction> elements)` `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction` `https://developer.android.com/reference/java/util/List.html#get(kotlin.Int)(int index)` `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction` `https://developer.android.com/reference/java/util/List.html#getFirst()()` `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction` `https://developer.android.com/reference/java/util/List.html#getLast()()` `abstract int` `https://developer.android.com/reference/java/util/List.html#getSize()()` `abstract int` `https://developer.android.com/reference/java/util/List.html#indexOf(E)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction element)` `abstract boolean` `https://developer.android.com/reference/java/util/List.html#isEmpty()()` `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Iterator.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `https://developer.android.com/reference/java/util/List.html#iterator()()` `abstract int` `https://developer.android.com/reference/java/util/List.html#lastIndexOf(E)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction element)` `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/ListIterator.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `https://developer.android.com/reference/java/util/List.html#listIterator()()` `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/ListIterator.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `https://developer.android.com/reference/java/util/List.html#listIterator(kotlin.Int)(int index)` `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/util/List.html#reversed()()` `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Spliterator.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/util/List.html#spliterator()()` `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction>` `https://developer.android.com/reference/java/util/List.html#subList(kotlin.Int, kotlin.Int)(int fromIndex, int toIndex)`

## Public methods

### get

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
abstract A2uiFunction get(@NonNull String name)
```

Retrieves a function by its unique name.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name` | The name of the function. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/catalog/A2uiFunction` | The function, or `null` if it is not registered in this collection. |