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

# IntFunction

` public interface IntFunction `   
` `

|---|
| java.util.function.IntFunction\<R\> |

<br />

*** ** * ** ***

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

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

## Summary

| ### Public methods ||
|---|---|
| ` abstract R` | ` https://developer.android.com/reference/java/util/function/IntFunction#apply(int)(int value) ` Applies this function to the given argument. |

## Public methods

### apply

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

```
public abstract R apply (int value)
```

Applies this function to the given argument.

<br />

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

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