Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# ToDoubleFunction

` public interface ToDoubleFunction `   
` `

|---|
| java.util.function.ToDoubleFunction\<T\> |

<br />

*** ** * ** ***

Represents a function that produces a double-valued result. This is the `double`-producing primitive specialization for `https://developer.android.com/reference/java/util/function/Function`.

This is a [functional interface](https://developer.android.com/reference/java/util/function/package-summary) whose functional method is `https://developer.android.com/reference/java/util/function/ToDoubleFunction#applyAsDouble(T)`.
**See also:**

- `https://developer.android.com/reference/java/util/function/Function`

## Summary

| ### Public methods ||
|---|---|
| ` abstract double` | ` https://developer.android.com/reference/java/util/function/ToDoubleFunction#applyAsDouble(T)(T value) ` Applies this function to the given argument. |

## Public methods

### applyAsDouble

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract double applyAsDouble (T value)
```

Applies this function to the given argument.

<br />

| Parameters ||
|---|---|
| `value` | `T`: the function argument <br /> |

| Returns ||
|---|---|
| `double` | the function result <br /> |