# DoubleToIntFunction

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

# DoubleToIntFunction

`
public


interface
DoubleToIntFunction
`  
`


`

|----------------------------------------|
| java.util.function.DoubleToIntFunction |

<br />

*** ** * ** ***

Represents a function that accepts a double-valued argument and produces an int-valued result. This is the`double`-to-`int`primitive specialization for[Function](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[applyAsInt(double)](https://developer.android.com/reference/java/util/function/DoubleToIntFunction#applyAsInt(double)).  
**See also:**

- [Function](https://developer.android.com/reference/java/util/function/Function)

## Summary

|                                                                                        ### Public methods                                                                                         ||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract int` | ` `[applyAsInt](https://developer.android.com/reference/java/util/function/DoubleToIntFunction#applyAsInt(double))`(double value) ` Applies this function to the given argument. |

## Public methods

### applyAsInt

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

```
public abstract int applyAsInt (double value)
```

Applies this function to the given argument.

<br />

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

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