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

# LongToIntFunction

` public interface LongToIntFunction `   
` `

|---|
| java.util.function.LongToIntFunction |

<br />

*** ** * ** ***

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

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

## Summary

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

Applies this function to the given argument.

<br />

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

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