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

# LongToDoubleFunction

` public interface LongToDoubleFunction `   
` `

|---|
| java.util.function.LongToDoubleFunction |

<br />

*** ** * ** ***

Represents a function that accepts a long-valued argument and produces a double-valued result. This is the `long`-to-`double` 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/LongToDoubleFunction#applyAsDouble(long)`.
**See also:**

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

## Summary

| ### Public methods ||
|---|---|
| ` abstract double` | ` https://developer.android.com/reference/java/util/function/LongToDoubleFunction#applyAsDouble(long)(long 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 (long value)
```

Applies this function to the given argument.

<br />

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

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