# DoubleListKt

Added in 1.5.0

*** ** * ** ***


```
public final class DoubleListKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#buildDoubleList(kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull Function1<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> builderAction )` Builds a new `https://developer.android.com/reference/androidx/collection/DoubleList` by populating a `https://developer.android.com/reference/androidx/collection/MutableDoubleList` using the given `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Function1)`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#buildDoubleList(kotlin.Int,kotlin.Function1)( int initialCapacity, @https://developer.android.com/reference/androidx/annotation/NonNull Function1<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> builderAction )` Builds a new `https://developer.android.com/reference/androidx/collection/DoubleList` by populating a `https://developer.android.com/reference/androidx/collection/MutableDoubleList` using the given `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Int,kotlin.Function1)`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#doubleListOf()()` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#doubleListOf(kotlin.Double)(double element1)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#doubleListOf(kotlin.DoubleArray)(double... elements)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#doubleListOf(kotlin.Double,kotlin.Double)(double element1, double element2)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#doubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)(double element1, double element2, double element3)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#emptyDoubleList()()` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#mutableDoubleListOf()()` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#mutableDoubleListOf(kotlin.Double)(double element1)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#mutableDoubleListOf(kotlin.DoubleArray)(double... elements)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#mutableDoubleListOf(kotlin.Double,kotlin.Double)(double element1, double element2)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | `https://developer.android.com/reference/androidx/collection/DoubleListKt#mutableDoubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)(double element1, double element2, double element3)` |

## Public methods

### buildDoubleList

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

```
public static final @NonNull DoubleList buildDoubleList(
    @NonNull Function1<@NonNull MutableDoubleList, Unit> builderAction
)
```

Builds a new `https://developer.android.com/reference/androidx/collection/DoubleList` by populating a `https://developer.android.com/reference/androidx/collection/MutableDoubleList` using the given `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Function1)`.

The instance passed as a receiver to the `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Function1)` is valid only inside that function. Using it outside of the function produces an unspecified behavior.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull Function1<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> builderAction` | Lambda in which the `https://developer.android.com/reference/androidx/collection/MutableDoubleList` can be populated. |

### buildDoubleList

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

```
public static final @NonNull DoubleList buildDoubleList(
    int initialCapacity,
    @NonNull Function1<@NonNull MutableDoubleList, Unit> builderAction
)
```

Builds a new `https://developer.android.com/reference/androidx/collection/DoubleList` by populating a `https://developer.android.com/reference/androidx/collection/MutableDoubleList` using the given `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Int,kotlin.Function1)`.

The instance passed as a receiver to the `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Int,kotlin.Function1)` is valid only inside that function. Using it outside of the function produces an unspecified behavior.

| Parameters |
|---|---|
| `int initialCapacity` | Hint for the expected number of elements added in the `https://developer.android.com/reference/androidx/collection/package-summary#buildDoubleList(kotlin.Int,kotlin.Function1)`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull Function1<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> builderAction` | Lambda in which the `https://developer.android.com/reference/androidx/collection/MutableDoubleList` can be populated. |

### doubleListOf

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

```
public static final @NonNull DoubleList doubleListOf()
```

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

### doubleListOf

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

```
public static final @NonNull DoubleList doubleListOf(double element1)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | a new read-only `https://developer.android.com/reference/androidx/collection/DoubleList` with `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.Double)` as the only item in the list. |

### doubleListOf

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

```
public static final @NonNull DoubleList doubleListOf(double... elements)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | a new read-only `https://developer.android.com/reference/androidx/collection/DoubleList` with `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.DoubleArray)` in order. |

### doubleListOf

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

```
public static final @NonNull DoubleList doubleListOf(double element1, double element2)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | a new read-only `https://developer.android.com/reference/androidx/collection/DoubleList` with 2 elements, `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.Double,kotlin.Double)` and `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.Double,kotlin.Double)`, in order. |

### doubleListOf

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

```
public static final @NonNull DoubleList doubleListOf(double element1, double element2, double element3)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/DoubleList` | a new read-only `https://developer.android.com/reference/androidx/collection/DoubleList` with 3 elements, `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)`, `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)`, and `https://developer.android.com/reference/androidx/collection/package-summary#doubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)`, in order. |

### emptyDoubleList

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

```
public static final @NonNull DoubleList emptyDoubleList()
```

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

### mutableDoubleListOf

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

```
public static final @NonNull MutableDoubleList mutableDoubleListOf()
```

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

### mutableDoubleListOf

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

```
public static final @NonNull MutableDoubleList mutableDoubleListOf(double element1)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | a new `https://developer.android.com/reference/androidx/collection/MutableDoubleList` with `https://developer.android.com/reference/androidx/collection/package-summary#mutableDoubleListOf(kotlin.Double)` as the only item in the list. |

### mutableDoubleListOf

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

```
public static final @NonNull MutableDoubleList mutableDoubleListOf(double... elements)
```

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

### mutableDoubleListOf

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

```
public static final @NonNull MutableDoubleList mutableDoubleListOf(double element1, double element2)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | a new `https://developer.android.com/reference/androidx/collection/MutableDoubleList` with 2 elements, `https://developer.android.com/reference/androidx/collection/package-summary#mutableDoubleListOf(kotlin.Double,kotlin.Double)` and `https://developer.android.com/reference/androidx/collection/package-summary#mutableDoubleListOf(kotlin.Double,kotlin.Double)`, in order. |

### mutableDoubleListOf

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

```
public static final @NonNull MutableDoubleList mutableDoubleListOf(double element1, double element2, double element3)
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/MutableDoubleList` | a new `https://developer.android.com/reference/androidx/collection/MutableDoubleList` with 3 elements, `https://developer.android.com/reference/androidx/collection/package-summary#mutableDoubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)`, `https://developer.android.com/reference/androidx/collection/package-summary#mutableDoubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)`, and `https://developer.android.com/reference/androidx/collection/package-summary#mutableDoubleListOf(kotlin.Double,kotlin.Double,kotlin.Double)`, in order. |