combinedProvider

fun <T, R> combinedProvider(providers: List<Provider<T>>, mapValue: (List<T>) -> R): Provider<R>

Creates and returns a new Provider that combines all values of providers and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, R> combinedProvider(a: Provider<A>, b: Provider<B>, mapValue: (A, B) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a and b and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, mapValue: (A, B, C) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b and c and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, mapValue: (A, B, C, D) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c and d and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, mapValue: (A, B, C, D, E) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c, d and e and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, mapValue: (A, B, C, D, E, F) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c, d, e and f and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, mapValue: (A, B, C, D, E, F, G) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f and g and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, H, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, h: Provider<H>, mapValue: (A, B, C, D, E, F, G, H) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f, g and h and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, H, I, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, h: Provider<H>, i: Provider<I>, mapValue: (A, B, C, D, E, F, G, H, I) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f, g, h and i and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, H, I, J, R> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, h: Provider<H>, i: Provider<I>, j: Provider<J>, mapValue: (A, B, C, D, E, F, G, H, I, J) -> R): Provider<R>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f, g, h, i and j and immediately maps them to R using mapValue.

mapValue should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <T> combinedProvider(providers: List<Provider<T>>): Provider<List<T>>

Creates and returns a new Provider that combines all values of providers.

The returned provider will only be stored in a WeakReference in the parent providers.


Creates and returns a new Provider that combines the values of a and b.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>): Provider<Tuple3<A, B, C>>

Creates and returns a new Provider that combines the values of a, b and c.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>): Provider<Tuple4<A, B, C, D>>

Creates and returns a new Provider that combines the values of a, b, c and d.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>): Provider<Tuple5<A, B, C, D, E>>

Creates and returns a new Provider that combines the values of a, b, c, d and e.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>): Provider<Tuple6<A, B, C, D, E, F>>

Creates and returns a new Provider that combines the values of a, b, c, d, e and f.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>): Provider<Tuple7<A, B, C, D, E, F, G>>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f and g.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, H> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, h: Provider<H>): Provider<Tuple8<A, B, C, D, E, F, G, H>>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f, g and h.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, H, I> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, h: Provider<H>, i: Provider<I>): Provider<Tuple9<A, B, C, D, E, F, G, H, I>>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f, g, h and i.

The returned provider will only be stored in a WeakReference in the parent providers.


fun <A, B, C, D, E, F, G, H, I, J> combinedProvider(a: Provider<A>, b: Provider<B>, c: Provider<C>, d: Provider<D>, e: Provider<E>, f: Provider<F>, g: Provider<G>, h: Provider<H>, i: Provider<I>, j: Provider<J>): Provider<Tuple10<A, B, C, D, E, F, G, H, I, J>>

Creates and returns a new Provider that combines the values of a, b, c, d, e, f, g, h, i and j.

The returned provider will only be stored in a WeakReference in the parent providers.