MapProviderFactory

A Factory implementation used to implement Map bindings. This factory returns a Map<K, Provider<V>> when calling invoke (as specified by Factory).

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val value: Map<K, Provider<V>>

Functions

Link copied to clipboard

The map of Providers that contribute to this map binding.

Link copied to clipboard
inline fun <T, R> Provider<T>.flatMap(crossinline transform: (T) -> Provider<R>): Provider<R>

Lazily maps this Provider's value to another Provider of type R.

Link copied to clipboard
open operator override fun invoke(): Map<K, Provider<V>>

Returns a Map<K, Provider<V>> whose iteration order is that of the elements given by each of the providers, which are invoked in the order given at creation.

Link copied to clipboard
open override fun isInitialized(): Boolean
Link copied to clipboard
inline fun <T, R> Provider<T>.map(crossinline transform: (T) -> R): Provider<R>

Lazily maps this Provider's value to another Provider of type R.

Link copied to clipboard

Returns a memoizing Provider instance of this provider.

Link copied to clipboard

Returns a memoizing Lazy instance of this provider.

Link copied to clipboard
inline fun <T, R, V> Provider<T>.zip(other: Provider<R>, crossinline transform: (T, R) -> V): Provider<V>

Lazily zips this Provider's value with another Provider of type R and returns a Provider of type V.