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

# DoubleToLongFunction

` public interface DoubleToLongFunction `   
` `

|---|
| java.util.function.DoubleToLongFunction |

<br />

*** ** * ** ***

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

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

## Summary

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

## Public methods

### applyAsLong

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

```
public abstract long applyAsLong (double value)
```

Applies this function to the given argument.

<br />

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

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