# ToDoubleBiFunction

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

# ToDoubleBiFunction

`
public


interface
ToDoubleBiFunction
`  
`


`

|-----------------------------------------------|
| java.util.function.ToDoubleBiFunction\<T, U\> |

<br />

*** ** * ** ***

Represents a function that accepts two arguments and produces a double-valued result. This is the`double`-producing primitive specialization for[BiFunction](https://developer.android.com/reference/java/util/function/BiFunction).

This is a[functional interface](https://developer.android.com/reference/java/util/function/package-summary)whose functional method is[applyAsDouble(java.lang.Object, java.lang.Object)](https://developer.android.com/reference/java/util/function/ToDoubleBiFunction#applyAsDouble(T,%20U)).  
**See also:**

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

## Summary

|                                                                                           ### Public methods                                                                                           ||
|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract double` | ` `[applyAsDouble](https://developer.android.com/reference/java/util/function/ToDoubleBiFunction#applyAsDouble(T,%20U))`(T t, U u) ` Applies this function to the given arguments. |

## Public methods

### applyAsDouble

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

```
public abstract double applyAsDouble (T t, 
                U u)
```

Applies this function to the given arguments.

<br />

|                  Parameters                   ||
|-----|------------------------------------------|
| `t` | `T`: the first function argument <br />  |
| `u` | `U`: the second function argument <br /> |

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