# Supplier

# Supplier

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/util/Supplier.kt+class:androidx.core.util.Supplier)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/util/Supplier "View this page in Java")

<br />

```
fun interface Supplier<T : Any?>
```

<br />

*** ** * ** ***

Compat version of[java.util.function.Supplier](https://developer.android.com/reference/java/util/function/Supplier.html)  

|                                       Parameters                                       |
|----------------------------------------------------------------------------------------|----------------------------------------|
| `<T : `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?>` | the type of the input to the operation |

## Summary

| ### Public functions |
|----------------------|------------------------------------------------------------------------------------------------------------|
| `T`                  | [get](https://developer.android.com/reference/kotlin/androidx/core/util/Supplier#get())`()` Gets a result. |

## Public functions

### get

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun get(): T
```

Gets a result.  

| Returns |
|---------|----------|
| `T`     | a result |