# Function

added in[version 1.0.0](https://developer.android.com/topic/libraries/support-library/revisions)  

# Function

| The`android.arch`Architecture Components packages are no longer maintained. They have been superseded by the corresponding[androidx.\*](https://developer.android.com/jetpack/androidx/migrate)packages. See[androidx.arch.core.util.Function](https://developer.android.com/reference/androidx/arch/core/util/Function)instead.

`
public


interface
Function
`  
`


`

|-----------------------------------------|
| android.arch.core.util.Function\<I, O\> |

<br />

*** ** * ** ***

Represents a function.

## Summary

|                                                                        ### Public methods                                                                         ||
|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract O` | ` `[apply](https://developer.android.com/reference/android/arch/core/util/Function#apply(I))`(I input) ` Applies this function to the given input. |

## Public methods

### apply

added in[version 1.0.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
O apply (I input)
```

Applies this function to the given input.

<br />

|           Parameters           ||
|---------|-----------------------|
| `input` | `I`: the input <br /> |

|             Returns              ||
|-----|-----------------------------|
| `O` | the function result. <br /> |

-

  ## Interfaces

  - [Function](https://developer.android.com/reference/android/arch/core/util/Function)