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

# ToLongBiFunction

` public interface ToLongBiFunction `   
` `

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

<br />

*** ** * ** ***

Represents a function that accepts two arguments and produces a long-valued result. This is the `long`-producing primitive specialization for `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 `https://developer.android.com/reference/java/util/function/ToLongBiFunction#applyAsLong(T,%20U)`.
**See also:**

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

## Summary

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

## Public methods

### applyAsLong

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

```
public abstract long applyAsLong (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 ||
|---|---|
| `long` | the function result <br /> |