# ObjectListKt

Added in 1.4.0

*** ** * ** ***


```
public final class ObjectListKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#emptyObjectList()()` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#mutableObjectListOf()()` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#mutableObjectListOf(kotlin.Any)(@https://developer.android.com/reference/androidx/annotation/NonNull E element1)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#mutableObjectListOf(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull E... elements)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#mutableObjectListOf(kotlin.Any,kotlin.Any)(@https://developer.android.com/reference/androidx/annotation/NonNull E element1, @https://developer.android.com/reference/androidx/annotation/NonNull E element2)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#mutableObjectListOf(kotlin.Any,kotlin.Any,kotlin.Any)( @https://developer.android.com/reference/androidx/annotation/NonNull E element1, @https://developer.android.com/reference/androidx/annotation/NonNull E element2, @https://developer.android.com/reference/androidx/annotation/NonNull E element3 )` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#objectListOf()()` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#objectListOf(kotlin.Any)(@https://developer.android.com/reference/androidx/annotation/NonNull E element1)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#objectListOf(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull E... elements)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#objectListOf(kotlin.Any,kotlin.Any)(@https://developer.android.com/reference/androidx/annotation/NonNull E element1, @https://developer.android.com/reference/androidx/annotation/NonNull E element2)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | `<E extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/collection/ObjectListKt#objectListOf(kotlin.Any,kotlin.Any,kotlin.Any)( @https://developer.android.com/reference/androidx/annotation/NonNull E element1, @https://developer.android.com/reference/androidx/annotation/NonNull E element2, @https://developer.android.com/reference/androidx/annotation/NonNull E element3 )` |

## Public methods

### emptyObjectList

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:emptyObjectList) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull ObjectList<@NonNull E> <E extends Object> emptyObjectList()
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a read-only `https://developer.android.com/reference/androidx/collection/ObjectList` with nothing in it. |

### mutableObjectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:mutableObjectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull MutableObjectList<@NonNull E> <E extends Object> mutableObjectListOf()
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new empty `https://developer.android.com/reference/androidx/collection/MutableObjectList` with the default capacity. |

### mutableObjectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:mutableObjectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull MutableObjectList<@NonNull E> <E extends Object> mutableObjectListOf(@NonNull E element1)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new `https://developer.android.com/reference/androidx/collection/MutableObjectList` with `https://developer.android.com/reference/androidx/collection/package-summary#mutableObjectListOf(kotlin.Any)` as the only element in the list. |

### mutableObjectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:mutableObjectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull MutableObjectList<@NonNull E> <E extends Object> mutableObjectListOf(@NonNull E... elements)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new `https://developer.android.com/reference/androidx/collection/MutableObjectList` with the given elements, in order. |

### mutableObjectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:mutableObjectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull MutableObjectList<@NonNull E> <E extends Object> mutableObjectListOf(@NonNull E element1, @NonNull E element2)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new `https://developer.android.com/reference/androidx/collection/MutableObjectList` with 2 elements, `https://developer.android.com/reference/androidx/collection/package-summary#mutableObjectListOf(kotlin.Any,kotlin.Any)` and `https://developer.android.com/reference/androidx/collection/package-summary#mutableObjectListOf(kotlin.Any,kotlin.Any)`, in order. |

### mutableObjectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:mutableObjectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull MutableObjectList<@NonNull E> <E extends Object> mutableObjectListOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new `https://developer.android.com/reference/androidx/collection/MutableObjectList` with 3 elements, `https://developer.android.com/reference/androidx/collection/package-summary#mutableObjectListOf(kotlin.Any,kotlin.Any,kotlin.Any)`, `https://developer.android.com/reference/androidx/collection/package-summary#mutableObjectListOf(kotlin.Any,kotlin.Any,kotlin.Any)`, and `https://developer.android.com/reference/androidx/collection/package-summary#mutableObjectListOf(kotlin.Any,kotlin.Any,kotlin.Any)`, in order. |

### objectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:objectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull ObjectList<@NonNull E> <E extends Object> objectListOf()
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a read-only `https://developer.android.com/reference/androidx/collection/ObjectList` with nothing in it. |

### objectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:objectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull ObjectList<@NonNull E> <E extends Object> objectListOf(@NonNull E element1)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new read-only `https://developer.android.com/reference/androidx/collection/ObjectList` with `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Any)` as the only element in the list. |

### objectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:objectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull ObjectList<@NonNull E> <E extends Object> objectListOf(@NonNull E... elements)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new read-only `https://developer.android.com/reference/androidx/collection/ObjectList` with `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Array)` in order. |

### objectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:objectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull ObjectList<@NonNull E> <E extends Object> objectListOf(@NonNull E element1, @NonNull E element2)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new read-only `https://developer.android.com/reference/androidx/collection/ObjectList` with 2 elements, `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Any,kotlin.Any)` and `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Any,kotlin.Any)`, in order. |

### objectListOf

Artifact: [androidx.collection:collection](https://developer.android.com/jetpack/androidx/releases/collection) [View Source](https://cs.android.com/search?q=file:androidx/collection/ObjectList.kt+function:objectListOf) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/collection#1.4.0)

```
public static final @NonNull ObjectList<@NonNull E> <E extends Object> objectListOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/ObjectList<@https://developer.android.com/reference/androidx/annotation/NonNull E>` | a new read-only `https://developer.android.com/reference/androidx/collection/ObjectList` with 3 elements, `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Any,kotlin.Any,kotlin.Any)`, `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Any,kotlin.Any,kotlin.Any)`, and `https://developer.android.com/reference/androidx/collection/package-summary#objectListOf(kotlin.Any,kotlin.Any,kotlin.Any)`, in order. |